|
|
@@ -88,11 +88,15 @@
|
|
|
*
|
|
|
* Options which can be set using the advanced format:
|
|
|
*
|
|
|
- * * `items` – Array of toolbar items names. The components which can be used as toolbar items are defined in
|
|
|
- * `editor.ui.componentFactory` and can be listed using the following snippet:
|
|
|
+ * * `items` – Array of toolbar items names. The components (buttons, dropdowns, etc.) which can be used as toolbar items
|
|
|
+ * are defined in `editor.ui.componentFactory` and can be listed using the following snippet:
|
|
|
*
|
|
|
* Array.from( editor.ui.componentFactory.names );
|
|
|
*
|
|
|
+ * You can also use `'|'` to create a separator between groups of items:
|
|
|
+ *
|
|
|
+ * toolbar: [ 'bold', 'italic', '|', 'undo', 'redo' ]
|
|
|
+ *
|
|
|
* * `viewportTopOffset` – The offset (in pixels) from the top of the viewport used when positioning a sticky toolbar.
|
|
|
* Useful when a page with which the editor is being integrated has some other sticky or fixed elements
|
|
|
* (e.g. the top menu). Thanks to setting the toolbar offset the toolbar won't be positioned underneath or above the page's UI.
|