Issue #901💬 AnsweredOpened February 26, 2018by rajatkumcom0 reactions

Can we have local and remote storage at the same time.

Quick answerby rajatkumcom

In my case I want both local and remote storage at the same time. The data will be stored locally in localstorage( If he/she will refresh the page without saving the save button the data will be rendered from local storage ) and when user will hit save button then it will stored remotely. After a certain time local st...

Read full answer below ↓

Question

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick SEARCH first, to see if someone else didn't open the same issueDON'T ASK to create examples/code for you, read DOCS and APIs first, then you can post what you have tried (we'd like to see your code) and what you're unable to achieveAll relative statements/questions have to be fil...

Answers (3)

rajatkumcomFebruary 26, 2018

In my case I want both local and remote storage at the same time. The data will be stored locally in localstorage( If he/she will refresh the page without saving the save button the data will be rendered from local storage ) and when user will hit save button then it will stored remotely. After a c...

artfMarch 2, 2018

Yeah, just leave the default localStorage active and create a button which makes use of remote storage

editor.StorageManager.get('remote').set({
	urlStore: 'somewhere', // set your configs
	...
}).store({html: editor.getHtml()})
rajatkumcomMarch 2, 2018

Thank you....

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.