Issue #609Opened December 6, 2017by duskhacker0 reactions

CSS editing duplicates body properties

Question

It's still duplicating body sections and properties:

When I pull it up, this is what it looks like:

<img width="472" alt="screen shot 2017-12-05 at 6 22 12 pm" src="https://user-images.githubusercontent.com/72599/33638098-039c6746-d9ea-11e7-896e-5169febac6f3.png">

I then edit it, removing the first selector section and the extra body properties ...

<img width="673" alt="screen shot 2017-12-05 at 6 22 52 pm" src="https://user-images.githubusercontent.com/72599/33638103-0beac474-d9ea-11e7-8afa-530098be1bd4.png">

... save it and pull it back up, it looks like it does in the first screen shot.

Answers (3)

artfDecember 8, 20170 reactions

Hi Daniel, just remove the default protectedCss

grapesjs.init({
     ...
     protectedCss: '',
})
duskhackerDecember 8, 20170 reactions

@artf Thank you!

duskhackerDecember 8, 20170 reactions

@artf I spoke too soon. If I remove the default protected CSS as you mentioned, then the body section and everything in it disappears...

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.