[Question] Upgraded 0.15.3 => 0.16.18, saved JSON is not storing some properties
Question
Hi, we upgraded from 0.15.3 to 0.16.18 and now the saved JSON coming out of grapesjs doesn't include some things that we were using before, namely styles and tagName.
Before Upgrade (0.15.3):

After Upgrade (0.16.18):

As we don't use the HTML, only the JSON, we need those properties to be in the schema.
Is there some config we could turn on to save more info in the JSON schema? Or else how can we solve this?
Thanks
Answers (1)
Yes, there is. When init grapesjs, you could set the config avoidDefaults to false.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2223
[Question] Should default text-align property have icons?
If styleManager is left out of the configuration, the default includes text-align with icons showing the choices. If I include a styleManag...
Issue #1470
[Question] Possible memory leaks
Hi, I am working on a project with Angular 6 and I am investigating a memory leak after destroying the editor on _previousAttributes and po...
Issue #1826
[Question] How to add link to an image?
Hi Artur, How to add a link to this image? If i need to create a custom component, please give me some example code Artur.. Thank you so mu...
Issue #1828
[Question] Add an additional text box for image upload modal?
Hi Artur, I'm wondering if that's possible to add some input boxes for image upload modal? I'd like to add some boxes in the red area in th...
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.