I start with the context :

  • Responsive blog theme
  • WYSIWYG module with ckeditor and the theme's css as ckeditor's css

I changed the site's body color to black. In node add form, the body text field as an white background but in comment form the body text field background is black like the site's body color I changed. Take a look to the screenshot attached to this issue.

screenshot

I'm trying to get a white background into the comment form body but without any success.

Does anyone have a solution ?

Thank you per advance.

CommentFileSizeAuthor
Sélection_001.png15.78 KBYannick WEBER
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yannick WEBER’s picture

Assigned: Unassigned » Yannick WEBER

Well, I just find a workaround.

Just add the following code into your style.css :

body.cke_editable {
        background: #fff;
}

Replace #fff with any oder color of your choice.

devsaran’s picture

Version: 7.x-1.4 » 7.x-1.5
Status: Active » Closed (fixed)

Patch committed and Fixed.

codemode01’s picture

Title: ckeditor body background color in comment form » Old thread... but this may save someone some time.
Category: bug » task
Issue tags: +change, +ckeditor, +background color

Set these background values to your desired color(s) - there are overlapping bg layers... I set all of them to transparent just to see what was on top of what.

ckeditor/skins/moono/editor.css

(line(848)
.cke_wysiwyg_frame, .cke_wysiwyg_div {
background-color:transparent;
}

(line-85)
.cke_top, .cke_contents, .cke_bottom {
display:block;
overflow:hidden;
background:transparent!important; /*use important*/
}

(line-73)
.cke_inner {
display:block;
-webkit-touch-callout:none;
background:transparent;
padding:0
}

ckeditor/content.css

(line-16)
body{
/* Remove the background color to make it transparent */
background-color:transparent;
}