Issue #2891Opened July 13, 2020by Davidvlv1 reactions

[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): image

After Upgrade (0.16.18): image

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)

longdoan7421July 14, 20201 reactions

Yes, there is. When init grapesjs, you could set the config avoidDefaults to false.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.