Want to save template name
Since you are already loading php in this file why don't you pass that as a url parameter: I would advise to have all this running under a user's session with tokens, etc but for now that should do the trick.
Read full answer below ↓Question
Hi @artf @sonnylloyd @arthuralmeidap @cmcintosh I am trying to store template name, but not sure how to pass the template name along with template data. I mean I want to store template name and template data with the help of one single submit button. Below is my code :
Answers (3)
Since you are already loading php in this file why don't you pass that as a url parameter: I would advise to have all this running under a user's session with tokens, etc but for now that should do the trick.
@daniel-farina I am trying to save the template name from a input text box and not the templateId
Well, there is always an option to use your custom ajax call where you might just add getHtml and getCss to your data. If the use of editor.store() is necessary you can add/update params (which will be passed with any request) on RemoteStorage instance
Related Questions and Answers
Continue research with similar issue discussions.
Issue #375
Edit Template into Database, need help with urlLoad
@arthuralmeidap @artf @cmcintosh I am trying to edit a existing template in the database, I am unable to send the template data and id to t...
Issue #1490
How to send value from the layout section
@artf I need your help to solve my issue with grapesjs i have this code in the template: I want to pass that value in this way but when I e...
Issue #382
Store the html and inline css in Editor.Store()
I am trying to store the html and inline css , can you please in how to pass it to editor.store() function. @artf
Issue #393
Two little things
Hi @artf @arthuralmeidap @sonnylloyd @cmcintosh @daniel-farina Thank you so much for developing such a awesome framework. I tried to achiev...
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.