Issue #1429šŸ’¬ AnsweredOpened September 15, 2018by iainheng2 reactions

Empty content when load from remote storage if components array is not empty

Quick answerby artfā¤ 1

There is actually might be a bug, can you try to return gjs-components as a string (so try to json encode your array)

Read full answer below ↓

Question

I have problem loading stored remote content into the editor when the JSON contains non empty gjs-components My JSON data looks like this which is very basic blockquote with a sentence of text Example response when calling my remote endpoint I am able to load the content if I set gjs-components: "" and it will load the gjs-html fine into the editor. And here is my current storage management configuration Trying to search for solution for few hours without any success. 😄 Any help will be very much appreciated.

Answers (3)

artf• September 16, 2018

There is actually might be a bug, can you try to return gjs-components as a string (so try to json encode your array)

artf• September 16, 2018

Thanks @iainheng, for now, keep it like this until the next release (hope to push it the next week)

iainheng• September 16, 2018

@artf Thanks for your help. 😊 It is a bug indeed. I store the gjs-components as a string and it is working now. šŸŽ‰

This is the same data store as string image

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.