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

Help in remote storage

快速解答by artf1

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

Read full answer below ↓

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, 2017

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, 2019

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

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.