[QUESTION]
Question
Hi guys and thank you for your magnificent work and this API!
I have a question about the box, which wraps all components after saving. For example lets say I have custom element something like `<div class="myclass" data-gjs-type="custom"></div>`. After saving the template and reloading it for farther editing in layer panel appear that all my ellement are wrapped by boxes (`<div class="c234"><div class="myclass" data-gjs-type="custom"></div></div>`).
Is it a mater of wrong storing and loading tha template or it is not properly defined by me. Is it possible to avoid this additional boxes when editting the template?
I'm loading template in this way:
//loading
editor.setComponents(storedHtml);
editor.setStyle(storedCss);
//stoaring
storedHtml=editor.getHtml()
storedCss=editor.getCss()
Thank you!Answers (3)
Same issue as https://github.com/artf/grapesjs/issues/1554 .
O, yes, I'm sorry! Thank you, cjpollard !
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 #553
Adding new components to existing ones
Hello, I would like to ask if there's any existing support or API for adding new components to an existing component list (e. g. after fetc...
Issue #1994
[question] Is it possible to add StyleManager property for only class name
Thank for this awesome library. I am gonna to add style controller to sector. This style will be for only one class name and won't set targ...
Issue #383
Best way to load element's css into the properties panel.
Hi Again everyone, GrapeJS is too much fun once you get deep into it. I have a simple question: What's the best way to load the css from a...
Issue #399
[Question] Can i push toolbar in current modal and current modal child?
Hello again @artf , i confuse about push toolbar in the element with specific class (ex: modal-trigger) the element code is : and in the /s...
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.