storageManager: Loading from remote storage
See original GitHub issueHi,
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 just, just cannot load it.
Is this the correct format for the data when you are loading it?
Content-type
application/json
Preview
{gjs-assets: "", gjs-components: "",…}
gjs-assets : ""
gjs-components : ""
gjs-css : "*{box-sizing: border-box;}body{margin:0;}.c1077{padding:10px;}"
gjs-html : "<div class="c1077">Insert your text here</div>"
gjs-styles : ""
Response
{"gjs-assets":"","gjs-components":"","gjs-css":"*{box-sizing: border-box;}body{margin:0;}.c1077{padding:10px;}","gjs-html":"<div class=\"c1077\">Insert your text here<\/div>","gjs-styles":""}
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Storage Manager - GrapesJS
... editor and is the one used in the storage manager methods in order to store and load your project (locally or remotely...
Read more >StorageManager - ClearML
StorageManager. class StorageManager(). StorageManager is helper interface for downloading & uploading files to supported remote storage Support remote ...
Read more >Custom StorageManager using GrapesJs API Storage Manager
Your code may be saving, but it isnt loading. Try adding autoload to true, or try calling it after you save.
Read more >Storage Manager 2020 R1 Administrator's Guide | Dell US
In the Storage view, select a FluidFS cluster. · Click the File System tab. · In the File System view, select Cluster Connectivity....
Read more >MegaRAID Storage Manager not discovering host
Check that the driver for the controller is running in Windows device manager. NOTE: For windows 2008, if you connect to MSM remotely,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@shareefhiasat I explain here how to use them https://github.com/artf/grapesjs/wiki/Storage#store-and-load-templates
So when I set:
contentTypeJson: true,
resulting in:
I can now load from the database. But, now it will not save, because it is sending the data as JSON. How can I send the data as POST variables, but receive it as JSON?