[QUESTIONS] Can i load data from variables
Question
Can i load data from variables, not from the server, like
var datajson = editor.store();
editor.load(datajson);
I've learned (https://grapesjs.com/docs/modules/Storage.html#storage-api), but still did not understand examples if they included the new logic to load the data, Thank You
Answers (1)
You can use editor.setComponents and editor.setStyle
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2365
Unable load predefined template.
I want to show a predefined template when users open grapesJs something like this: Storage manager. HTML: <div id="gjs" style="height:0px;...
Issue #1930
[QUESTIONS] change 2 attributes with 1 trait
I have an input trait, I want to change the 2 attributes (name and type) on the selected input element, on canvas is appropriate, but in th...
Issue #2784
Are media queries broke?
I'm just trying the demo on my phone https://grapesjs.com/demo.html render of HTML/CSS https://us-central1-connectionhelper-6e7ed.cloudfunc...
Issue #2069
[BUG] `allowScripts: true` still deletes <script> tags
Hi all. Thanks for creating and maintaining this amazing project. 🙏 Bug Description I have a block that inserts a script as specified here...
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.