[QUESTION] - add multiples CSS attributes with one button on StyleManager sidebar
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 #1827
[QUESTION] How to add a button in the section (block) on hover?
Hello @artf, You are doing great work. I tried to add a button in the section (block) on mouseover. Can you please help me to add or show "...
Issue #2742
[QUESTION] How to prevent unique ids generation?
Hi! Thanks for your work @artf. This is a simplified code of how I use grapesjs, I want to save the styles and then want to apply them agai...
Issue #2350
[Question] How do I add elements/sectors to views container using a custom button in the Panel
I have added a custom button to the Panel as below: const pm = editor.Panels; pm.addButton('views', { id: 'customButton', className: '', co...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.