StorageManager dynamic url endpoints
@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)
@ensemblebd you tried to change like it: editor.StorageManager.getConfig().urlStore = "myUrl"?
The correct way of doing so would be updating the Storage model
editor.StorageManager.get('remote').set({ urlStore: '...', ... })
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.
Issue #2073
[QUESTIONS] Trouble using urlLoad
I've got an issue calling to my endpoint to load a template, it's doing a pre flight OPTIONS request but I cant find how to continue after...
Issue #493
[QUESTION] Can i set content dynamically from block API ?
Hi @artf , very great web builder framework and keep it up :+1: code : As you can see, can i make tag dynamically from my backend? i use EJ...
Issue #1273
Feature request: Asset manager more suitable for large amount of images
The asset manager window is kinda tiny. If you're selecting from thousands of product images, the user experience becomes quite limited. It...
Issue #1985
[BUG] Autosave with remote storage doesn't send network requests
OS: Windows 10 Browser: Chrome 73 GrapesJS version: 0.14.57 I have remote storage configured using this call to grapesjs.init(): While I se...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.