grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[Question]: Add a select-option to toolbar

Open sura2k opened this issue 8 years ago • 3 comments

I have read the code and only I could find out that there is only a list of ToolbarButton associated with the toolbar. I have a special trait that I would like to put it into the toolbar because it is very important to see the user which component has this trait and also to change it on the designer/canvas without having many clicks. And this select-option should only be available to some types of blocks. I think I can try to update the trait value via an event, if I can add a select-option to the tool bar. Appreciate any help.

sura2k avatar Mar 03 '18 04:03 sura2k

I was able to manage it by modifying ToolbarButton and its view. But later I decided to expose them by adding those to DomComponents via separate property rather than modifying ToolBar..., so I can extend them and since the changes are few lines, I can easily merge it with new versions of the core. I'm not a javascript guy but the way your team designed this is highly extensible. Thanks.

sura2k avatar Mar 04 '18 05:03 sura2k

Hi @sura2k, I also want to add a select option to toolbar. Can you please share your ideas/code/script on how did you implement it?

 Thanks in advance.

vtsoft avatar Feb 07 '19 02:02 vtsoft

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Feb 07 '20 04:02 lock[bot]