Issue #521Opened November 14, 2017by Eman-Shaaban1 reactions

Help in remote storage

Question

The remote storage part isn't very clear in the wiki, I want to know If I can store templates by name as html files in some folder and retrieve them also by name.

Answers (2)

artfNovember 15, 20171 reactions

Hi @Eman-Shaaban, GrapesJS is just a client-side library and doesn't deal with back-end stuff. The remote storage just sends data to some server-side script, then it's up to handle it (you can store it inside a file or maybe in some DB table). This is all the code you need

var editor = grapesjs.init({
    container : '#gjs',
    ...
    storageManager: {
      type: 'remote',
      urlStore: 'http://store/endpoint', // <-- here you have to set up your endpoint
      urlLoad: 'http://load/endpoint', // <-- here you have to set up your endpoint
    }
});
lock[bot]September 18, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.