Преглед изворни кода

Docs: Fixed invalid code sample.

Piotrek Koszuliński пре 8 година
родитељ
комит
3d417345de
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      packages/ckeditor5-core/src/editor/editorconfig.jsdoc

+ 6 - 2
packages/ckeditor5-core/src/editor/editorconfig.jsdoc

@@ -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.