Help needed: save/restore gjs data block types
Question
Hello everyone, can you please point me to the right direction?
- When I save the html code and css code - it gets new-line-trimmed. Is there any way to avoid any trimming?
- After inserting "custom code" block, saving and restoration from the remote storage it appears as either "Default" type of "text" type. How to set data-gjs-type to custom-code back?
Many thanks...
Answers (1)
Solved by using json content from the StorageManager.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #544
Add select with optgroup
Hello @artf I have recently started using grapeJs and found it awesome. Can you please help me on How can I add dropdown(select) with optgr...
Issue #911
Could some one please help me with Custom Load.
What I can use instead of followings- editor.setHtml( arrdata['html'] ), editor.setCss( arrdata['css'] ), In below code.
Issue #6152
BUG: CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Issue #3446
Cannot Store Data Unexpected token '-'
Please Help Me, I Want To Store gjs data to mysql but i cannot get any data from front end to back end here my code: const editor = grapesj...
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.