Issue #3143Opened November 15, 2020by sprklinginfo0 reactions

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)

artfNovember 19, 20200 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.