Amending urlStore and urlLoad dynamically.
Ok here's what I missed for future reference. The way I've set the 'new' store URL is incorrect here: That's not actually setting the variable correctly. I needed to use the .get() method on StorageManager to get the storage I was working with, then use .set() on StorageManager to amend the values instead:
Read full answer below βQuestion
Hi Everyone I'm loving Grapesjs so far - thanks for all your work on it. I'm in the process of trying to set up storage for whole page templates which will be written to a MongoDB via mongoose.GrapesJS Version: 0.14.40OS: Ubuntu 17.10 Looking at the HTTP responses I seem to be able to store and receive them ok. My Express server routes look like this: The idea being that I can post to /store/my-template-name to create a new template with the name "my-template-name". My first hunch was to try and update the urlStore and urlLoad variables from the storageManager object which currently looks lik...
Answers (2)
Ok here's what I missed for future reference. The way I've set the 'new' store URL is incorrect here: That's not actually setting the variable correctly. I needed to use the .get() method on StorageManager to get the storage I was working with, then use .set() on StorageManager to amend the values...
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.
Issue #1788
[QUESTION] How to dynamically add assets from the server after editor initialization?
Hi! Thanks for the work you've done building this cool library! I am using latest angular and stuck with issue when I open image library in...
Issue #518
change only component body not whole page body.
Hello @artf As we discussed in issue #374. setComponents will set the body and replace all the contents that are present on the page with a...
Issue #1938
[QUESTION] what would be the best way to store the template dynamically
I'm looking to store data dynamically though a id that is called in, at the moment I'm loading in templates dynamically but cant seem to fi...
Issue #1876
[QUESTION] export to pdf
Hi all, 1) Can I use this framework for generate pdf file after editing html page? And how can I do it? 2) Can I make ready templates and p...
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.