-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline toolbar (wrapping toolbar) #6146
Comments
Thanks for the feature request. I guess we're doing everything to avoid having multiline toolbars (e.g. by introducing toolbar grouping), but let's see how many people would still prefer this way of handling big number of buttons. |
It's possible to create line breaks by:
|
I've been looking at demos of "document presets" such as https://ckeditor.com/docs/ckeditor5/latest/features/export-pdf.html and the buttons don't fit there even despite the wide column. I think we need to prioritize wrapping the toolbar finally. Also, we changed the styling of the vertical separator which makes that simpler now. The tricky bit here is how to implement the separator as the child of the toolbar collection in a way that the focus cycler will ignore it. We also need to disable toolbar wrapping for such toolbars. It does not make sense to try to make both features compatible with each other. |
|
toolbar: {
items: {
'bold',
'italic',
'underline',
'strikethrough',
'/',
'alignment',
'|',
'numberedList',
'bulletedList',
}
}
toolbar: {
items: {
{ name: 'basic styles', items: [ 'bold', 'italic', 'underline', 'strikethrough' ] },
'/',
{ name: 'other group', items: [ 'alignment', '|', 'numberedList', 'bulletedList' ] }
}
}
Even if we went back to the full-height separators and added some border to the line separator, this does not look great
|
That's what CKE4 uses, so it may be a simpler upgrade path.
Makes sense too.
It worked for CKE4 (that had groups too), so it seems fine.
Yeah, I think I agree that there needs to be a balance between a too empty toolbar and too wide. In the end, this will be the integrator's choice anyway as they will choose the included features, but we should have some reasonable defaults. I don't have problems with extending the document build. The demo that we have on https://ckeditor.com/ckeditor-5/demo/#document has more features anyway. I'd run this by @wwalc as he'll have the most input.
What if
Sounds reasonable. |
TODOs
|
Pinged @wwalc for feedback. Let's gather it before we'll move forward to avoid surprises. |
Another TODO: we need to support line breaks in https://ckeditor.com/ckeditor-5/online-builder/. It's not a blocker for the release, but should be resolved in a near future. |
|
TODO:
|
Follow up about "Toolbar configuration" guide: #8513 EDIT: I've closed follow up, as I've included docs in this branch. |
Can we address #6146 (comment)? This is the main reason why we're working on the multi-line toolbar. Personally, I'm for a multiple-line declarative toolbar with as many features as possible to mimic the document build. cc @Reinmar |
when has this issue gone be solved? waiting for the next update of ckEditor5. |
Follow-up for the docs: #8493 |
Feature (ui, theme-lark): Implemented a toolbar configuration that allows rendering toolbar items in multiple rows. Closes #6146. Feature (build-decoupled-document): Added new features to the build configuration (horizontal line, page break, remove formatting, and special characters) (see #6146). Internal (editor-inline): Aligned the editor view to the latest API of `ToolbarView` (see #6146). Docs (core): Explained how to configure the editor toolbar to make it break in multiple lines (see #6146).
Follow-up for supporting line breaks in online builder: #8567 Follow-up for updating the document editor demo: cksource/bigbang-ckeditor.com#2217 |
Would love to see a possibility as CKEditor4 to have "/" as a toolbar item which breaks it to a new line when using the option "shouldNotGroupWhenFull"
If you'd like to see this feature implemented add 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: