Issue #1902Opened March 18, 2019by JoeriAben0 reactions

[QUESTIONS] Disable/change build-in components behavior

Question

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 div & span into editable components (or change the isComponent so I can add a class/data flag). Because I don't want all div's & span's editable only the ones I say need to be editable with a data-gjs flag.

Hopefully, someone can point me in the right direction.

Kind regards,

Joeri

Answers (3)

artfMarch 23, 20190 reactions

Create a custom text-editable component by extending the text one. Then extend the text component by setting editable to false. Now in your template use data-gjs-type="text-editable"

lock[bot]March 22, 20200 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.