-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Consider enabling toolbar items grouping in inline and balloon builds #5597
Copy link
Copy link
Closed
ckeditor/ckeditor5-ui
#536Labels
domain:ui/uxThis issue reports a problem related to UI or UX.This issue reports a problem related to UI or UX.package:build-balloonpackage:build-balloon-blockpackage:build-inlinesupport:2An issue reported by a commercially licensed client.An issue reported by a commercially licensed client.type:featureThis issue reports a feature request (an idea for a new functionality or a missing option).This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
Metadata
Metadata
Assignees
Labels
domain:ui/uxThis issue reports a problem related to UI or UX.This issue reports a problem related to UI or UX.package:build-balloonpackage:build-balloon-blockpackage:build-inlinesupport:2An issue reported by a commercially licensed client.An issue reported by a commercially licensed client.type:featureThis issue reports a feature request (an idea for a new functionality or a missing option).This issue reports a feature request (an idea for a new functionality or a missing option).
📝 Provide a description of the new feature
ATM automatic items grouping (a.k.a. responsive toolbar) works only in classic and decoupled editors. I wasn't enabled in inline and balloon because there's no way to have it out–of–the–box. Simply, there's no obvious size restriction for the toolbars in these editors because the toolbar element is floating and physically attached down bellow in the so-called "body" collection. There's no parent that could squeeze it or force to resize.
But there are some tricks we could use to make it happen in inline/balloon:
For instance, we can use an arbitrary CSS
max–widthon the toolbar element. It will automatically group items that do not fit. It will be static from that moment on because still there's nothing that impacts its size, but it does improve the UXIn inline we could synchronize the
max-widthof the toolbar with the width of the editable it is attached to avoid this situation:This should be fairly easy because we have a tool that can observe changes in the geometry of the editable. All we need is to read it and apply to the toolbar:
In balloon we could do the same (
max-width) maybe except thatSo in this case, we could also observe the geometry of the editable but use some sane scale factor like
toolbar#max-width = 50% of editable.width.We can start implementing those features straight away or we can first document them like
and see if people start using it.
@Reinmar @dkonopka @mlewand
If you'd like to see this feature implemented, add a 👍 reaction to this post.