Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it just me or after upgrading to the latest 1.x or 2.x-dev cause the text editor for TinyMCE to not have a white background? In other words, it's transparent.
Comments
Comment #1
sunProbably just you. ;)
We fixed the actual loading of theme stylesheets recently. So if your theme does not define styles for BODY, or defines some weird styles for it, then this behavior is perfectly possible.
Comment #2
spiffyd CreditAttribution: spiffyd commentedThe styles for BODY in my theme's custom CSS is an image. There is no color.
Do you know how I can specifically attribute TinyMCE's body style with css?
Comment #3
spiffyd CreditAttribution: spiffyd commentedCan someone tell me how to define TinyMCE's body background with CSS? (and not change the webpage's body color)?
Comment #4
nedjoI got this same issue, which appears to be caused by a misfit between the theme's CSS and what's needed for the editor. Fixed by editing the WYSIWYG profile for the given input format and, under "CSS", setting "Editer CSS" to "Editor default CSS" (rather than "Use theme CSS").
Comment #5
sunThe CSS selector for the BODY of TinyMCE's IFrame is:
body.mceContentBody
Comment #6
lunk rat CreditAttribution: lunk rat commentedIn other words, put this into your style.css or your css override file:
body.mceContentBody {
background-color: #fff;
color: #000;
}
Cheers,