Browse Source

TINY-714: added docs for insert button

pull/440/head
Spocke 9 years ago
parent
commit
3b327cb6fc
  1. 1
      _data/nav.yml
  2. 17
      _includes/configuration/insert-button-items.md
  3. 2
      _includes/configuration/insert-toolbar.md
  4. 1
      advanced/editor-control-identifiers.md
  5. 2
      configure/editor-appearance.md

1
_data/nav.yml

@ -57,6 +57,7 @@
- url: "#fixed_toolbar_container"
- url: "#height"
- url: "#inline"
- url: "#insert_button_items"
- url: "#insert_toolbar"
- url: "#max_height"
- url: "#max_width"

17
_includes/configuration/insert-button-items.md

@ -0,0 +1,17 @@
## insert_button_items
This enables you to specify what to display in the insert buttons menu. The value of this option should be a space separated list of menu item [control identifiers]({{ site.baseurl }}/advanced/editor-control-identifiers/#menucontrols) or | for a menu separator.
**Type:** `String`
**Defaults:** Defaults to anything marked with the "insert" context
##### Example
```js
tinymce.init({
...
toolbar: 'insert',
insert_button_items: 'image link | inserttable'
});
```

2
_includes/configuration/insert-toolbar.md

@ -1,6 +1,6 @@
## insert_toolbar
The enables you to specify toolbar items to include in the inlite themes insert toolbar. We recommend that you only have insert related controls in this toolbar but nothing is restricting you to use any of the available [toolbar controls]({{ site.baseurl }}/advanced/editor-control-identifiers/#toolbarcontrols).
This enables you to specify toolbar items to include in the [inlite]({{ site.baseurl }}/themes/inlite) themes insert toolbar. We recommend that you only have insert related controls in this toolbar but nothing is restricting you to use any of the available [toolbar controls]({{ site.baseurl }}/advanced/editor-control-identifiers/#toolbarcontrols).
**Type:** `String`

1
advanced/editor-control-identifiers.md

@ -41,6 +41,7 @@ Here is a list of the toolbar/menu controls that the core and plugins provides.
| subscript | core | Applies subscript format to the current selection. |
| superscript | core | Applies superscript format to the current selection. |
| visualaid | core | Toggles the visual aids for invisible elements. |
| insert | core | Groups various insert actions into one button. |
| hr | [hr]({{ site.baseurl }}/plugins/hr/) | Inserts a horizontal rule into the editor. |
| link | [link]({{ site.baseurl }}/plugins/link/) | Creates/Edits links within the editor. |
| unlink | [link]({{ site.baseurl }}/plugins/link/) | Removes links from the current selection. |

2
configure/editor-appearance.md

@ -17,6 +17,8 @@ description: Configure the editor's appearance, including menu and toolbar contr
{% include configuration/inline.md %}
{% include configuration/insert-button-items.md %}
{% include configuration/insert-toolbar.md %}
{% include configuration/max-height.md %}

Loading…
Cancel
Save