Unable to load from remote
No I am see what looks to be the correct loading, but the content in the frame doesn't refresh: {assets: Array(0), css: "*{box-sizing: border-box;}body{margin:0;}", styles: Array(0), html: "<div class="container"><h1>Hello World</h1></div><β¦></div></div></div></div></div></div></div></div>", components: "[{"tagName":"...
Read full answer below βQuestion
I'm trying to load from a remote URL, and nothing ever loads. This is the response I get back from the load function: Loaded {0: "β΅", 1: "{", 2: """, 3: "g", 4: "j", 5: "s", 6: "-", 7: "a", 8: "s", 9: "s", 10: "e", 11: "t", 12: "s", 13: """, 14: ":", 15: "[", 16: "]", 17: ",", 18: """, 19: "g", 20: "j", 21: "s", 22: "-", 23: "c", 24: "s", 25: "s", 26: """, 27: ":", 28: """, 29: "*", 30: "{", 31: "b", 32: "o", 33: "x", 34: "-", 35: "s", 36: "i", 37: "z", 38: "i", 39: "n", 40: "g", 41: ":", 42: " ", 43: "b", 44: "o", 45: "r", 46: "d", 47: "e", 48: "r", 49: "-", 50: "b", 51: "o", 52: "x", 53: ";...
Answers (3)
No I am see what looks to be the correct loading, but the content in the frame doesn't refresh: {assets: Array(0), css: "*{box-sizing: border-box;}body{margin:0;}", styles: Array(0), html: "<div class="container"><h1>Hello World</h1></div><β¦></div></div></div></div></div></div></div></div>", compon...
Be sure to use contentTypeJson: true in your storageManager configuration and read this: https://grapesjs.com/docs/modules/Storage.html
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #597
storageManager: Loading from remote storage
Hi, I'm trying to read the HTML and CSS from my database. When I try to load it into the editor, nothing displays. I can store the data jus...
Issue #1431
Load HTML file from remote
I hosted my html content in cloud. Then trying to load the html content in the editor I found the error: "Response to preflight request doe...
Issue #1487
Load from Database
I've got an issue with loading the lory-slider from my mysql db. When i load it back in, the functionality is gone, i cant slide left or ri...
Issue #1887
Get JSON of specific gjs-data-type
I want to export JSON of only a specific gjs-data-type="img" I'm trying this but it doesn't give any result:
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.