Issue #2213💬 AnsweredOpened August 22, 2019by benvmatheson1 reactions

CSS property always added to the end of sector

快速解答by benvmatheson1

For future reference, looks like this is a default configuration if anyone needs to use it as a base: https://github.com/artf/grapesjs/blob/dev/index.html#L89

Read full answer below ↓

Question

I wanted to add min-height and max-width to the default properties. Is it possible to add these next to max-height instead of at the end of the sector? Or will I need to just manually define the entire sector in order to manage property order?

Also, I was just curious why these weren't included in the defaults?

Thanks for making such a rad project!

Answers (2)

artfAugust 26, 2019

Is it possible to add these next to max-height instead of at the end of the sector? Or will I need to just manually define the entire sector in order to manage property order?

Unfortunately, currently, you have to define the entire sector. I'll add at option (same as in addSector) in the next release

Also, I was just curious why these weren't included in the defaults?

IDK to be honest, probably those I have defined were already enough

Thanks for making such a rad project!

Thanks to you for using it 😁

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.