Issue #831💬 AnsweredOpened February 2, 2018by ensemblebd2 reactions

StorageManager dynamic url endpoints

Quick answerby JulyanoF1

@ensemblebd you tried to change like it: editor.StorageManager.getConfig().urlStore = "myUrl"?

Read full answer below ↓

Question

FEATURE REQUEST

SPA approach for dynamically loading and storing utilizing the storageManager urlStore and urlLoad config options. It would be GREAT if your code checks if it's a function, not assume it's a string literal defined finitely, explicitly, at time of initial configuration (page load). Changing the config values during runtime has NO effect on the predefined storageManager.

Or perhaps add the params configuration object to the urlLoad as well. Shouldn't params defined in config be passed to BOTH load and store?

Answers (3)

JulyanoFFebruary 5, 2018

@ensemblebd you tried to change like it: editor.StorageManager.getConfig().urlStore = "myUrl"?

artfFebruary 7, 2018

The correct way of doing so would be updating the Storage model

editor.StorageManager.get('remote').set({ urlStore: '...', ... })
ensemblebdFebruary 5, 2018

I ended up just making second ajax request after calling editor.store(), to store the data I wish to store. I'll give that a try though, that is not the way in which I changed it.

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.