[Issue] Body Background color does not change second time.
Question
Hey, I'm using [email protected].
I'm having an issue with body CSS stylings.
My scenario:
I'm opening a blank file from local file system. I changed body background color to #ff0000 and saved the file. File is saved properly with css as of body{background-color:#ff0000} when I opened that file in text editor locally.
But when I opend that same file in GrapesJS editor again, now my code shows body{background-color: rgb(255,0,0)} . And when I update body color to #00ff00 then a new body style is defined above the body{background-color: rgb(255,0,0)} with body{background-color:#00ff00} and my body backgroud color remains same old to rgb(255,0,0) as it overrides the new value of #00ff00.
How to resolve?
Also body{margin:0} is added everytime automatically. How to prevent?
Answers (3)
Maybe related to #552
Hey thanks Faizan, as you already realized, we aware of this issue, therefore I close this one and suggest you to follow it there (subscribe to it)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #966
[QUESTION] How to load external CSS file into Grapes Editor?
Hey, During my editor = grapesjs.init(), I want to load an external CSS file into the canvas using @import url(...). So when I use my custo...
Issue #1357
[Bug]: Body -> Decorations -> Background-image
Version 0.14.25 | Local copy GrapesJS Tested in: Chrome 68, Firefox 61 Add a background image in "Body (Selected #wrapper) -> Decorations -...
Issue #1092
[BUG]traits and storage trigger
Hey, maybe it's not bug, i'm not sure. I have traits with changeProp: true field. When I change the value of trait by UI, model is changed...
Issue #1533
Color picker goes outside the editor screen when NOT FULL SCREEN
Hi, I have successfully contained div id="gjs" inside of another div container with left side menu and top menu. It's working well, but the...
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.