Add multiples CSS attributes with one button on StyleManager sidebar
At the moment I don't think you can do that with the StyleManager it may be easier to use traits
Read full answer below ↓Question
Hey man, once again, great work on the GrapesJS, you are getting tons of things done, it is incredible!
So, my question is, how can I add multiples CSS properties with just one button on the StyleManager?
What I want to add is a display: flex; justify-content: center, the way we have right now that I found on the documentation is to add just one property with one value, or you can stack the values for a complex property like border, shadow and so on...
Am I missing anything on how to add that?
Thanks in advance.
Answers (2)
At the moment I don't think you can do that with the StyleManager it may be easier to use traits
Yeah, unfortunately, @Ju99ernaut is right! Probably soon I'll start working on the StyleManager API which would allow a similar level of customization we have in Traits
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1822
[QUESTION] - Add style sector for specific Css rule
Hey @artf , COuld you give your help on this one? I want to disable the user to able to select the wrapper block (body) but I still want to...
Issue #4744
Transform scale and rotate don't work properly.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Brave last versionReproducible demo link htt...
Issue #3631
How to load dynamic content in the final HTML file?
I looked everywhere, including the issues section and tried a few things. But really unsure how to load dynamic content in my components al...
Issue #3347
How can I get Uncompressed JS code for me to edit?
Hi, thank you for reviewing my problem. I want to use my own JSEditor to edit html、css and js. 1、First, I use getHtml, getCss, getJs to dis...
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.