Closed (fixed)
Project:
Sky
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2009 at 04:04 UTC
Updated:
5 Jul 2009 at 16:30 UTC
I was getting very small text and a the bg-body.png showing up in the background of the TinyMCE editor window.
http://img.skitch.com/20090616-cju41fsfm4fwiac5kfd717ruwm.jpg
I added the following css to fix the issue:
html, body .mceContentBody {
font-size: 1.25em;
background: #FFFFFF;
}
Comments
Comment #1
agerson commentedPS, Screen shot only shows background image, text size fix already applied in that shot.
Comment #2
agerson commentedhmmm, that appears to have had other negative side effects. The problem stems from the fact that tinymce includes an iframe with a full html and body that is inheriting the background: #355671 url('../images/bg-header.png') repeat-x bottom left; Investigating...
Comment #3
agerson commentedComment #4
jacineHey, do you have this on a demo site where I can try debugging with Firebug? I really, really don't want to install TinyMCE.
Thanks :)
Comment #5
aimutch commentedI'm not seeing the background image but I am seeing the small text. Here's the relevant code:
and the related code from Firebug:
The fix will require creating TinyMCE specific styles that will work within the iframe.
Comment #6
aimutch commentedShouldn't the line-height have a size attribute associated with it like px or em?
Comment #7
agerson commentedYes, will email you login info
Comment #8
jacineaimutch, it actually doesn't need units it for line height ;)
agerson, maybe you should try this:
Comment #9
agerson commentedthe body tag now works, but there is still some background showing through. In firebug if I disable to background for html tag inside the iframe it looks perfect. We need to additionally apply background-image: none; or background: #ffffff to the html tag inside the iframe id="edit-body_ifr" frameborder="0" style="width: 100%; height: 258px; I tried
that didnt work.
Comment #10
agerson commentedis there anything wrong with changing style.css from
to
or even getting rid of the html selector altogether?
Comment #11
aimutch commentedThere's a body tag within the iframe so moving the background image into the body section may not fix this.
Comment #12
agerson commentedThe body tag inside the iframe has a selector "mceContentBody" which can be overridden with
This solution + #10 fixed the problem for me.
Comment #13
aimutch commentedWhich browser are you seeing this behavior on? Just curious since I couldn't replicate the background problem.
Comment #14
jacineIf I remember correctly, the background needed to be applied to both html & body because of the sticky footer & Opera. Not sure though, it was a long time ago. I just tried and it appears to be okay in Opera, so what if you leave body.mceContentBody alone, and instead of #10 try:
Let me know how that works out.
Comment #15
jacineagerson, I tried the fix I posted on your site and it appeared to work, so I committed it. I had to remove the code you had in your custom stylesheet though. Let me know how it works for you.