Issue #2854Opened June 24, 2020by cartifon1 reactions

[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)

Ju99ernautJune 30, 20201 reactions

At the moment I don't think you can do that with the StyleManager it may be easier to use traits

artfJuly 5, 20200 reactions

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.

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.