How to prevent styling html components?
Question
Im trying to create some templates, which should not be editable and styleable. So that when i drag in my blocks then should stay as defined. Is there a way to disable the style manger for certain components?
i know about data-gjs-removable="false", data-gjs-editable="false" But they do not do what im tryting to do.
Thanks.
Answers (3)
Try data-gjs-stylable="false".
Yeah you should use data-gjs-stylable="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 #1902
[QUESTIONS] Disable/change build-in components behavior
Hey, Trying to get GrapesJs work for a project I'm currently working on. But is there a way to disable the built-in components that convert...
Issue #1318
Question: How to enable Event of mouse to increase value of input
hi @artf I want to know Is there any way to enable input mouse scroller in style manager as you can my screenshot. i want to initalize scro...
Issue #1886
How to create Drop down for the button inside a panel?
I'm trying to create a dropdown while clicking a button. I can append the data using ul, li to a button. Other than that any other way is t...
Issue #1890
[QUESTION] Disable Drag Feature, Not Ability
I want to create my own dragging and placement abilities. I love grapesjs, but really want more control over how dragging elements work in...
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.