Issue #2854💬 AnsweredOpened June 24, 2020by cartifon1 reactions

Add multiples CSS attributes with one button on StyleManager sidebar

Quick answerby Ju99ernaut1

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)

Ju99ernautJune 30, 2020

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

artfJuly 5, 2020

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

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.