not selected element
Question
What should the isComponent function return so that this element can not be selected in the editor?
Answers (2)
You can make use of selectable property, so you should return return { type: 'your-type', selectable: false }
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #714
Open Style Manager when selecting an element
trying to do this gives the error this.sender.get is not a function grapesjs.min.js toggleSm Basically I want to open the style manager whe...
Issue #1859
Change an element type in editor
Hi, In my javascript i already create 2 components (type "A" and type "B) with their own traits. I create a context menu on both elements t...
Issue #1227
Re-render view in editor's canvas whenever Trait value changes
Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should li...
Issue #1638
how to stop css repeatition
hi @artf here is my code of Export-template i make it editable Also, i add a media-query to display in view code with this editor.setCompon...
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.