Rename attributes (Editor)
Question
Is there any way to rename "data-gjs-" attributes to "data-myOwnProjectName-"?
For example:
- "data-gjs-type" => "data-myOwnProjectName-type"
- "data-gjs-droppable" => "data-myOwnProjectName-droppable" etc...
Answers (2)
No, currently it's hardcoded https://github.com/artf/grapesjs/blob/5fe64423b2a4c94f5b3cd9b7b8e1d887a8896ab0/src/parser/model/ParserHtml.js#L4
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 #1608
[Question] Customize CSS class name
GrapesJs editor creates a unique class for element and adds CSS rules to it. For example, Now, is there any way to customize this behaviour...
Issue #792
Script property using function don't work with blocks
In Components & JS docs there's this example: This works perfectly. But I couldn't use a function instead of a string in script, as is said...
Issue #1766
Is There any way to integrate ImageEditor in GrapesJs
After Dropping the image inside the editor is there any plugin for GrapesJs to edit that image like Cropping , adding text on it .....
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
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.