Defining CSS in style manager
It works already like this, if you select a component with a class you will edit the CSS style assigned to that class and you can add it to other components to see the same style
Read full answer below ↓Question
Can we define CSS in editor style manager. Primarily:
- What is "state" and "class" in editor style manager
- If I define a custom class to a element. How to define CSS for that class. What is I want to assign the same class to another element so there should be a mechanism to define CSS at class level and not at element level (one class can be assigned to multiple elements)
regards -Ashish
Answers (1)
It works already like this, if you select a component with a class you will edit the CSS style assigned to that class and you can add it to other components to see the same style
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2586
[Question]: How update style manager panel using few devices and custom css class
There is a custom class added to simple grapesjs project: If there is no devices and user adds the class into the selectors field Settings...
Issue #2378
[QUESTION] Modifying global CSS in style manager
We want to achieve the following:Mark our block HTML elements with some classes like:Add some styles that define CSS classes like:Using Gra...
Issue #3401
Can style manager always generate IDs instead of using already defined element's class ?
When we style an element in the editor, if this element doesn't have neither a class or an id, the style manager generate a new id with the...
Issue #2706
[QUESTION] Unique ID on block content without inline style
Hi All, I made a custom block manager element, but when the element is edited, it applies the style to the class, which means all the same...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.