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

Created on 15 Sep 2018  路  4Comments  路  Source: artf/grapesjs

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
image

Example response when calling my remote endpoint
image

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

image

Trying to search for solution for few hours without any success. 馃槬

Any help will be very much appreciated.

bug outdated

All 4 comments

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FlashPapa picture FlashPapa  路  3Comments

kawika-connell picture kawika-connell  路  3Comments

nojacko picture nojacko  路  3Comments

desilvaNSP picture desilvaNSP  路  3Comments

tribulant picture tribulant  路  3Comments