Skip to content Skip to sidebar Skip to footer

Ckeditor 4.7 - Justify Group Menu Button

i'm trying to create a dropdown menu in CKEditor to group some normal button tool just because i need to compress the toolsbar. For this i'm trying to create, for example, a justif

Solution 1:

1 - The problem that is causing buttons not to display is ACF. Buttons that you're grouping in your dropdown requires certain tags/attrs to be available. In the simplest case it requires text-align to be applicable on p.

It looks that there's a bug in CKEditor that buttons added using editor.addMenuItems are not registering properly new ACF rules, while they do if added directly to the toolbar.

3 - I couldn't find a proper function for that, IMHO it should be doable in onMenu function, however it does not provide enough references to do that. Sounds like a feature request.

Generally you should look at language plugin, as it has many things you are looking for so it's a nice source of inspiration.

For future reference, please create separate StackOverflow question for each case. Though these issues were releated, they are a different cases.

Post a Comment for "Ckeditor 4.7 - Justify Group Menu Button"