Issue #4859πŸ’¬ AnsweredOpened Jan 20, 2023by zoilorys0 reactions

Editing CSS property sets a style to a common class instead of element

Quick answerby artf

You just need to enable this option: https://grapesjs.com/docs/modules/Selectors.html#component-first-selectors

Read full answer below ↓

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v108Reproducible demo link https://grapesjs.com/demo.htmlDescribe the bug How to reproduce the bug?Setup grapesjs editorImport following template https://pastebin.com/d9S2M0iSAt the very bottom of the template you will see wrapped facebook buttonSelect table cell it is in, and try t change its width What is the expected behavior? When style property of the element is edited - styles should be updated only on selected element. What is the current behavior? Changing width of the cell for some r...

Answers (2)

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @zoilorys. Great question about Editing CSS property sets a style to a common class instead of element. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event...

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.