Remote Storage
Question
I'm trying to use the remote storage but no success, with the resolved issues I manage to adjust eveything as it best, but editor do not render loaded HTML.
GrapesJS:
var editor = grapesjs.init({
container : '#gjs',
storageManager: {
type: 'remote',
autoload: true,
stepsBeforeSave: 10,
contentTypeJson: true,
urlStore: 'domain.dev/store',
urlLoad: 'domain.dev/load',
params: {},
},
showDevices: false,
plugins: ['gjs-blocks-basic'],
pluginsOpts: {
'gjs-blocks-basic': {/* ...options */}
}
});
editor.on('storage:load', function(e) {
console.log('Loaded ', e);
editor.render();
});
JSON:
{"gjs-css":"", "gjs-html":"<div>HELLO</div>", "gjs-assets":"[]", "gjs-styles":"[]", "gjs-components":"[]"}
Load event:

GrapesJS seems to be loading okay, I put the editor.render() after the init and also inside the load event to try out.
Answers (3)
I had similar problems. Look at the issue I created. Issue #597.
My issue related to the use of contentTypeJson: true, but you already have that in yours.
GrapesJS seems to be loading okay, I put the editor.render() after the init and also inside the load event to try out.
You should use editor.render() only with autorender: 0, so remove it
@DeathStapler thanks, I was able to load the urlLoad with that setting.
@artf still not able to render the editor, the console shows the loaded urlLoad but nothing on editor, also in the view source button.
I'm using the latest version.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #384
Create and Edit Template into Database
This is my code to Create a new template and insert the inline html with style into the database : I am able to insert the template-data in...
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 #998
[BUG] Asset Manager sends empty request when uploading image
Description: GrapesJS editor is initialized in an editor.html file as follows: localhost:9001 is a local IIS server running PHP5. The conte...
Issue #438
Imported HTML, I can move components but not edit them
All I did was import HTML, except I can't modify the text in the HTML I can't type anything or remove any text
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.