Replies: 1 comment 3 replies
-
You can follow the docs here for setting up remote storage properly. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm in the process of updating an app to the latest version and there is a few breaking changes, with Storage Manager.
This is the update version of the config.
storageManager: { type: 'remote', autoload: false, stepsBeforeSave: 3, options: { remote: { urlLoad: CompGrapesjsStore, urlStore: CompGrapesjsStore, contentTypeJson: true, storeComponents: true, storeStyles: true, storeHtml: true, onStore: (data, editor) => { return { id: 1, data }; }, onLoad: result => result.data, } } },
The app has a custom command to save on the DB.
commandsManager.add('saveToDatabase', { run: function (editor, sender) { editor.store(); sender && sender.set('active'); jQuery.notify('Template Saved!', 'success') }, });
Is there any more information for loading and storing template on remote storage?
Right now I'm now able to load the template once they are stored on the DB.
I went thru the documentation and the the issue queue and this 4371 is the more helpful for loading remote data with backwards compatibility.
Beta Was this translation helpful? Give feedback.
All reactions