-
-
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
Move plugins into drop down list #5783
Comments
Hello! Some time ago we've introduced the toolbar items grouping for narrow toolbars, doesn't it solve your issue? Besides that, you can also take a look at the block toolbar where you can put your plugins. |
@Mgsy, thank you very much for your reply. The toolbar items group exactly what we want, but I don't know this is already available. I am new to CKEditor and only know installing of plugin through npm install --save. What is the name of plugin I can install? I found the git commit id. Do I extract it though git checkout? |
Grouping is enabled by default, however, it's not available for inline and balloon editors. There's no need to perform additional actions, just run, for example, the classic build and that's it. Please, see it in action here. |
Thanks again. We implement multiroot editor, following code sample in the documentation. Will that be any issue? Automatic item grouping help 75% our use cases. (#1472 will be 95% :) When the drop down (preferable a down arrow and menu go straight down) appear, it contains some items with submenu. Let us say the drop down has an item call "Alignment", followed by right triangle. Clicking it open another drop down, showing four choices (Left, Right, Center and Justify, in text), in other words, a hierarchy of drop downs. The design also bind "fontColor and fontBackgroundColor" into one dropdown, which might not be taken care by the automatic grouping. |
As you can see, According to our guide, the toolbar is created in this.toolbar = new ToolbarView( locale, { shouldGroupWhenFull: true } );
Unfortunately, due to other priorities, we can't provide any ETA for this feature. However, you can add 👍 to the first post to bump a popularity of this request. Also, feel free to join the discussion. |
@Mgsy. "shouldGroupWhenFull: true" is a life saver. Thanks a million. If I want to go ahead work implement 1472 on my own, I want to know how to associate a button with a plugin. I browse the code how a toolbar is parsed, but I haven't gotten anywhere yet. By any chance you can point me to a class, a function to find out how the association is made? |
CKEditor 5 plugins use commands which could be executed by However, for your case, maybe a better solution will be creating a new toolbar? |
Our CKEditor 5 toolbar is too narrow to put in desired buttons. So, we have to put some plugins in the drop down list. I managed to get a drop down list show up with dummy buttons. But I don't know how to associate the dummy buttons to a real plug in:
class CustomToolList extends Plugin {
init() {
const editor = this.editor;
}
The text was updated successfully, but these errors were encountered: