loading remote data
Question
Im working on a project and having a hard time getting remote data. Code:
storageManager: { id: 'gjs-', // Prefix identifier that will be used on parameters type: 'remote', // Type of the storage autosave: true, // Store data automatically autoload: true, // Autoload stored data on init stepsBeforeSave: 1, // If autosave enabled, indicates how many changes are necessary before store method is triggered storeComponents: true, storeStyles: true, contentTypeJson: true, urlStore: "/api/v1/templates/" + temp_id, urlLoad: "/api/v1/templates/" + temp_id,
Sample response from network tab in dev tools: {"data":{"id":"3","type":"templates","attributes":{"gjs-html":"\u003cdiv\u003etest12324\u003c/div\u003e","gjs-css":"div{color:red;}","name":"Sample","author":"Jeff Gipson","content":"\u003ch1\u003ePut your title here\u003c/h1\u003e\u003ch1\u003eThis is a test 2\u003c/h1\u003e\u003ch1\u003e\u003c/h1\u003e","contact-id":1}}
Thanks for your help: Once we go live I will be supporting this app
Answers (3)
I think you need to print your data->attributes. Here my printed data that works fine

Thanks for the reply @miky9585 I tried this but not working
@jeffgipson you're returning a completely wrong format from the server, please read carefully this part https://grapesjs.com/docs/modules/Storage.html#setup-the-server
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3589
Autoload storage is not working on page refresh
Hi, firstly I want to say that this project is awesome, thank you! I used code from GrapeJS Demo example, and added there save and load dat...
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 #1274
Remote storage option is not sending in $_POST the JSON structure
Hi @artf! I'm working to adapt your content builder in our system using the latest release v.0.14.21. I have set up the following configura...
Issue #2963
Template loaded via remote storage is not displayed in the editor
Hi, I am trying to load a default template from remote storage into the editor but nothing is displayed. As part of of the initialization I...
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.