[QUESTION] What things should I save in the database with remote storageManager?
Question
What do I do with gjs-assets, gjs-components, gjs-css, gjs-html, and gjs-style? and how do I load these things to my editor?
Answers (3)
gjs-html and gjs-css are your final results, so probably you would print them on some page for the end user.
gjs-components and gjs-style contains the JSON data about your template so you have to use those if you need to edit the template in the editor
@artf would there be problems if I would just insert the saved html and css to the editor to edit it? and not use the gjs-components and gjs-style?
@pranzikkin if you use custom elements and you care about the consistency with editing your templates, well yeah, you'll get problems
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1360
[Question/bug] Need help saving data to Blackbaud database.
I'm trying to embed this into Blackbaud Internet Solutions using a Custom Content Part. Can someone help me figure out how to setup the sto...
Issue #1466
Editing Saved html editor.setComponents slider load issue
I am working on a project where i integrated grapesJs for users to build there templates, save them in database and edit these saved templa...
Issue #966
[QUESTION] How to load external CSS file into Grapes Editor?
Hey, During my editor = grapesjs.init(), I want to load an external CSS file into the canvas using @import url(...). So when I use my custo...
Issue #597
storageManager: Loading from remote storage
Hi, I'm trying to read the HTML and CSS from my database. When I try to load it into the editor, nothing displays. I can store the data jus...
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.