Hide toolbar for inner components
Question
By default, when a component is selected, the toolbar is displayed with 'move, copy, delete' etc actions, it is set with ' showToolbar: 1' option. When I define a custom component which may have several inner components, I want to hide the toolbar for those inner components. I don't want to hide it globally in grapesjs.init(). thanks,
Answers (1)
When you define the component, you can customize the toolbar array
defaults: {
...
toolbar: [], // this will prevent its rendering on the component
}
Related Questions and Answers
Continue research with similar issue discussions.
Issue #621
Second toolbar with different button and at different position
Hello , I want to add new toolbar similar to the toolbar which is shown when any object in canvas is selected( with copy,delete, move funct...
Issue #1665
Jquery selector in traits Actions
I have created a custom component and and select to its traits, this select cotains multiple URLs. in doStuff() method i've displayed the s...
Issue #2170
[QUESTION] Custom component - how to set editable to true
Hi, I've created a custom component type, but I am having some trouble making it editable. The component is a "span" with component type "t...
Issue #3231
BUG: how to change gjs-ckeditor-format component
hi guys, we all know that gjs-ckeditor-plugin working with [data-gjs-type]="text" components. I wanna know , could we change this option? I...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.