Issue #6527Opened May 22, 2025by tim-prom1 reactions

BUG: Malformed inline styles causing editor freeze

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Firefox 138.0.4

Reproducible demo link

https://codesandbox.io/p/sandbox/exciting-lalande-98d5vw

Describe the bug

How to reproduce the bug?

  1. Add page with component that has malformed inline styles
  2. Editor does not load and entire page becomes unresponsive. Firefox shows "This page is slowing down firefox" warning

What is the expected behavior? If editor cannot parse CSS, it would be nice to log the error in console and not block the entire app

What is the current behavior? Editor becomes unresponsive

If is necessary to execute some code in order to reproduce the bug, paste it here below:

editor.Pages.add({
  component: '<h3 style="text-align: center; /* margin-top: 20px;">Test</h3>',
});

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (1)

artfJune 10, 20251 reactions

Thanks for the report @tim-prom

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.