Issue #3289πŸ’¬ AnsweredOpened Feb 23, 2021by bgrand-ch2 reactions

Components have lost their styles

Quick answerby artf❀ 1

That because you've updated original commands with your versions (incorrectly). Indeed, if I remove your plugin from the demo everything works as expected. Please check the original copy and paste command, you should clone components before paste, so, your implementation couldn't work.

Read full answer below ↓

Question

Version: 0.16.41 Are you able to reproduce the bug from the demo? [X] Yes [ ] No What is the expected behavior? 1) Copy selected parent component (container) to the clipboard. 2) Paste selected parent component (container) from the clipboard (into the same page or an other page). 3) All components keep ID styles and inline styles. What is the current behavior? 1) Copy selected parent component (container) to the clipboard. 2) Paste selected parent component (container) from the clipboard (into the same page or an other page). 3) Components have lost their ID styles, but not their inline style...

Answers (4)

artfβ€’ Mar 4, 2021

That because you've updated original commands with your versions (incorrectly). Indeed, if I remove your plugin from the demo everything works as expected. Please check the original copy and paste command, you should clone components before paste, so, your implementation couldn't work.

bgrand-chβ€’ Mar 4, 2021

@artf Thanks for your answer. A link or an example or more explanations please? πŸ˜…

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @bgrand-ch. The error error: { icon: 'error', color: 'red' } occurs when StyleManager attempts to access properties before the component lifecycle is fully initialized. This is a common race condition in GrapesJS. Immediate workaround: If you control the code, wrap calls...

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.