Issue #2402Opened November 12, 2019by varadero0 reactions

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' } and plugins: ['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 .load of 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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.