-
Notifications
You must be signed in to change notification settings - Fork 15
i/5692: Added documentation for the config.toolbar.shouldNotGroupWhenFull option #201
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,9 @@ | |
* toolbar: { | ||
* items: [ 'bold', 'italic', '|', 'undo', 'redo' ], | ||
* | ||
* viewportTopOffset: 30 | ||
* viewportTopOffset: 30, | ||
* | ||
* shouldGroupWhenFull: true | ||
* } | ||
* }; | ||
* | ||
|
@@ -162,6 +164,11 @@ | |
* * **`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 | ||
* (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.shouldGroupWhenFull`** – When `true` (default), the toolbar will group its items that | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This documentation entry is growing ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As long as those options are fairly simple (boolean, number, simple array), I'd keep them locally here because, as you mentioned, that more convenient to read. But I agree that at some point we may need to extract it. But then we can keep a lot of information here locally, and have details in the interface. |
||
* would normally wrap to the next line when there is not enough space to display them in a single row. | ||
* | ||
* **Note**: For now this option works for {@link module:editor-classic/classiceditor~ClassicEditor} and | ||
* {@link module:editor-decoupled/decouplededitor~DecoupledEditor} only. | ||
* | ||
* @member {Array.<String>|Object} module:core/editor/editorconfig~EditorConfig#toolbar | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No one will be setting it to
true
as this is the default.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'd rather rename it to
shouldNotGroupWhenFull
to avoid a flag which is default by true. Then you'll also have less issues with handling the default in the other two PRs.