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)
Hi Daniel, just remove the default protectedCss
grapesjs.init({
...
protectedCss: '',
})
@artf Thank you!
@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.
Issue #1358
Create link only on "OK" button press
Hello everyone, I overwrote the default 'Link' acton of the rich text editor: <img width="1274" alt="screen shot 2018-08-13 at 1 58 43 pm"...
Issue #2838
Style sections are duplicated
Hello Guys I'm using: "grapesjs": "0.16.12", "grapesjs-preset-webpage": "0.1.11", and in the css edit area i get this strange behavior: <im...
Issue #1597
Can we add resizable property in gjs-layer-manager frame?
hi @artf Is it possible to add resizable property on the frame of layer-manager as screen shot below i want to add dynamic resizable proper...
Issue #401
Cannot upload images
Hi, while uploading an image through asset manager, I get the following error: Assetmanager configuration at editor init looks like Folder...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.