Keeping data-gjs- tags
No, data-gjs-* attributes are used only for the import purpose
Read full answer below ↓Question
Hello, great stuff. Thanks.Is there any possibility to not remove data-gjs- tags when loading html template or return them with getHtml()?
Answers (3)
No, data-gjs-* attributes are used only for the import purpose
Is there a way to remove this on a local version, I'm needing the data-gjs-* to be kept when returned to the canvas.
You can always extend the default component view and add attributes you need
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1653
Is there any way to store edited template from grapesjs as .html in local folder ?
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #563
Table <thead> and <tbody> tag gets Omitted
Hello, There is new issue with GrapesJS (maybe). I've created new component using bm.add() in which I've used a table element with <thead>...
Issue #1762
image not change while we fetch html using editor.getHtml()
Hello @artf I am using grapes.js for my website-builder tool into my website. While i double click on any image the asset-manager will open...
Issue #1682
Remove cookies on GrapesJS?
Hello! I'm using the latest version of GrapesJS, however it is causing issues with my project, because GrapesJS is saving the edits as a co...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.