Kaynağa Gözat

Merge pull request #201 from ckeditor/i/5692

Docs: Added documentation for the `config.toolbar.shouldGroupWhenFull` option. Closes ckeditor/ckeditor5#5692.
Piotrek Koszuliński 6 yıl önce
ebeveyn
işleme
af29f60fd6

+ 8 - 1
packages/ckeditor5-core/src/editor/editorconfig.jsdoc

@@ -144,7 +144,9 @@
  *			toolbar: {
  *			toolbar: {
  *				items: [ 'bold', 'italic', '|', 'undo', 'redo' ],
  *				items: [ 'bold', 'italic', '|', 'undo', 'redo' ],
  *
  *
- *				viewportTopOffset: 30
+ *				viewportTopOffset: 30,
+ *
+ *				shouldNotGroupWhenFull: true
  *			}
  *			}
  *		};
  *		};
  *
  *
@@ -162,6 +164,11 @@
  * * **`toolbar.viewportTopOffset`** – The offset (in pixels) from the top of the viewport used when positioning a sticky toolbar.
  * * **`toolbar.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
  * 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 will not be positioned underneath or above the page's UI.
  * (e.g. the top menu). Thanks to setting the toolbar offset the toolbar will not be positioned underneath or above the page's UI.
+ * * **`toolbar.shouldNotGroupWhenFull`** – When set `true`, the toolbar will stop grouping items that wrap to the next line when
+ * there is not enough space to display them in a single row.
+ *
+ *	**Note**: For now this option affects {@link module:editor-classic/classiceditor~ClassicEditor} and
+ * {@link module:editor-decoupled/decouplededitor~DecoupledEditor} only that enable automatic toolbar items grouping by default.
  *
  *
  * @member {Array.<String>|Object} module:core/editor/editorconfig~EditorConfig#toolbar
  * @member {Array.<String>|Object} module:core/editor/editorconfig~EditorConfig#toolbar
  */
  */