Issue #609💬 AnsweredOpened December 6, 2017by duskhacker0 reactions

CSS editing duplicates body properties

Quick answerby artf

Hi Daniel, just remove the default protectedCss

Read full answer below ↓

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, 2017

Hi Daniel, just remove the default protectedCss

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

@artf Thank you!

duskhackerDecember 8, 2017

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

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.