Issue #1583πŸ’¬ AnsweredOpened November 15, 2018by sambarnes901 reactions

Amending urlStore and urlLoad dynamically.

Quick answerby sambarnes90❀ 1

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)

sambarnes90β€’ November 16, 2018

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

lock[bot]β€’ November 16, 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.