Issue #2891💬 AnsweredOpened July 13, 2020by Davidvlv1 reactions

Upgraded 0.15.3 => 0.16.18, saved JSON is not storing some properties

快速解答by longdoan74211

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

Read full answer below ↓

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, 2020

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.