-
I store javascript via editor.getJs() in a database.
But it doesn't work as expected. Only the last element added can be used as expected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Traver72 as explained here https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates you have to store/load the JSON. What you get from |
Beta Was this translation helpful? Give feedback.
Hi @Traver72 as explained here https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates you have to store/load the JSON. What you get from
getJs()
/getHtml()
/getCss()
is only to use for "final pages" as they don't have all the information necessary for the editor.