Issue #831Opened February 2, 2018by ensemblebd2 reactions

[FEATURE] storageManager dynamic url endpoints

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, 20181 reactions

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

artfFebruary 7, 20181 reactions

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

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

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.