[QUESTION] what would be the best way to store the template dynamically
Question
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 figure out a way to store them. below is a rough idea but something along those lines , any help is appreciated.
storageManager: {
type: 'remote',
if(id){
urlStore: 'save + id',
}
urlStore: 'save',
success: true/false,
params: { }, // For custom values on requests
headers: {},
},
Answers (2)
editor.StorageManager.getConfig().urlStore = 'save/' + id;
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 #1864
[QUESTION] Best way to listen to changes on the final HTML?
Hi, I just had a quick question because I could not figure out how to do it or did not find an issue related to it. I am just trying to cal...
Issue #1731
[QUESTION] What is the best way to manage dynamic components?
Hi, can you please tell me what is the best way to manage dynamic templates. I want to describe you what's my case.Have e-commerce store an...
Issue #1983
Support extending grapesjs
Hi Arthur, I am not on twitter and am wondering what the best way is of contacting you to discuss a piece of work i have. Since you know gr...
Issue #1583
[Question] Amending urlStore and urlLoad dynamically.
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 temp...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.