Issue #1485💬 AnsweredOpened October 8, 2018by Skovmissen1 reactions

How to prevent styling html components?

Quick answerby cjpollard1

Try data-gjs-stylable="false".

Read full answer below ↓

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)

cjpollardOctober 8, 2018

Try data-gjs-stylable="false".

artfOctober 11, 2018

Yeah you should use data-gjs-stylable="false"

lock[bot]October 11, 2019

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.

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.