Browse Source

update the location of toolbar_sticky option

pull/1252/head
Tyler Kelly 6 years ago
parent
commit
4b8c2cdf37
  1. 1
      _data/nav.yml
  2. 25
      _includes/configuration/toolbar.md
  3. 24
      _includes/configuration/toolbar_sticky.md
  4. 2
      configure/editor-appearance.md

1
_data/nav.yml

@ -116,6 +116,7 @@
- url: "#toolbar"
- url: "#toolbar(n)"
- url: "#toolbar_drawer"
- url: "#toolbar_sticky"
- url: "#width"
- url: "content-appearance"
pages:

25
_includes/configuration/toolbar.md

@ -48,31 +48,6 @@ tinymce.init({
});
```
### Enabling Sticky Toolbars
{{site.requires_5_1v}}
A Sticky Toolbar (or Docking Toolbar), docks the toolbar and the menu to the top of the screen when scrolling down a web page until the editor is no longer visible.
To enable Sticky Toolbars, set `toolbar_sticky` as `true` in the `tinymce.init` script. To disable Sticky Toolbars, set `toolbar_sticky` as `false`
To see a demo of sticky toolbar, see the [TinyMCE Sticky Toolbar Demo](https://codepen.io/tinymce/full/qBWLLMP).
**Type:** `Boolean`
**Default Value:** `false`
**Possible Values:** `true`, `false`
##### Example
```js
tinymce.init({
selector: 'textarea', // change this value according to your HTML
toolbar_sticky: true
});
```
### Disabling the toolbar
To disable the toolbar, the toolbar option should be provided a boolean value of `false`.

24
_includes/configuration/toolbar_sticky.md

@ -0,0 +1,24 @@
## toolbar_sticky
{{site.requires_5_1v}}
A Sticky Toolbar (or Docking Toolbar), docks the toolbar and the menu to the top of the screen when scrolling down a web page until the editor is no longer visible.
To enable Sticky Toolbars, set `toolbar_sticky` as `true` in the `tinymce.init` script. To disable Sticky Toolbars, set `toolbar_sticky` as `false`
To see a demo of sticky toolbar, see the [TinyMCE Sticky Toolbar Demo](https://codepen.io/tinymce/full/qBWLLMP).
**Type:** `Boolean`
**Default Value:** `false`
**Possible Values:** `true`, `false`
##### Example: toolbar_sticky
```js
tinymce.init({
selector: 'textarea', // change this value according to your HTML
toolbar_sticky: true
});
```

2
configure/editor-appearance.md

@ -82,4 +82,6 @@ description: Configure the editor's appearance, including menu and toolbar contr
{% include configuration/toolbar-drawer.md %}
{% include configuration/toolbar_sticky.md %}
{% include configuration/width.md %}
Loading…
Cancel
Save