editor.load removes styles
Question
I am using editor.load with the built in local storage manager and the result is that styling for elements is lost.
How to reproduce:
- Navigate to https://grapesjs.com/demo.html (or use new grapesjs project and initialize it with
storageManager: { type: 'local' }andplugins: ['gjs-blocks-basic']) - Go to "Blocks" and drag and drop a link or text block
- Open browser console and execute
editor.load()(or if you use custom project - execute.loadof your editor instance)
What happens:
The styling for the text block / link block is lost. If you use custom ("clean") project you will notice that before calling editor.load() the browser local storage contains key gjs-styles that contains an array with objects describing some styles, after executing editor.load() the key gjs-styles becomes empty array [].
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2403
editor.load possibly causes memory leak
How to reproduce:Naviagate to https://grapesjs.com/demo.htmlOpen browser console (Chrome) and type the following: setInterval(() => editor....
Issue #4000
BUG: Pasting a component in root body layer throws TypeError
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v89 Reproducible demo link https://...
Issue #6669
BUG: Cross-level reordering of blocks in Layer Manager causes Sorter errors and breaks further move attempts
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://grap...
Issue #4370
BUG: LayerManager becomes unresponsive after StorageManager.load()
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 102Reproducible demo link https://cod...
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.