Data-gjs-custom-name question
No, those attributes are only used for the import. Please, learn how to store correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
Read full answer below βQuestion
I've created a simple block content with a custom data-gjs-custom-name = "test".
When i save the page i cant see those attributes on the generated HTML.
Then, when i load that HTML, those custom components appears as BOX.
Is there any way to keep those attributes?
Answers (2)
No, those attributes are only used for the import. Please, learn how to store correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
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 #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 #1912
[QUESTION] Custom component default children
Hi, I am trying to understand how I can achieve the following.Create a component with a default content as children.Create a block to add t...
Issue #906
[Question]How to change custom component content (html) from ajax?
Hi @artf, First of all thanks for this awesome plugin. Can you please let me know how i can update/change block content? I created custom b...
Issue #1272
[QUESTION] Using setComponent() ??
Creating a Plugin to use GrapesJS with Plone. GrapesJS Version: Latest When using the setComponent() function, we are scraping the HTML con...
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.