Empty content when load from remote storage if components array is not empty
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)
There is actually might be a bug, can you try to return gjs-components as a string (so try to json encode your array)
Thanks @iainheng, for now, keep it like this until the next release (hope to push it the next week)
@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

Related Questions and Answers
Continue research with similar issue discussions.
Issue #2044
Npm start to develop on local server didn't work
Did the procedure to start the local server using dev branch as described on README, it worked on the console, but fails on chrome and the...
Issue #1985
[BUG] Autosave with remote storage doesn't send network requests
OS: Windows 10 Browser: Chrome 73 GrapesJS version: 0.14.57 I have remote storage configured using this call to grapesjs.init(): While I se...
Issue #873
[Need help]: After using urlLoad from storage manager impossible to change component with Traits
Hello, I am save template to db and after loading from db impossible to change component with Traits. Video example on countdown: https://y...
Issue #1980
[BUG]: RTE Editor not scrolling
The Toolbar of the RTE Editor is not visible vor Text field higher than the Browserwindow. While scrolling to the middle the RTE Toolbar is...
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.