Page 1 of 1

textbox background in TinyMCE

Posted: Thu Jul 14, 2005 8:40 pm
by claystorm
Ok, so the way my page is setup right now (via the template), I have a background image, and then I have a table for the content with a different background. My problem is that my font color is white, so when I try and edit a page with TinyMCE, I have no way to tell what I am editing. My background image is white, with our company logo. Using the check box to remove background stuff from CSS when editing is no help, cus the default color for the TinyMCE box is white.

Is there some setting that I have missed, or is there a way that I could chance the default color of the TinyMCE box? Maybe adding a box in the TinyMCE properties that could allow that would work.

Otherwise, this is a great software package & I love it.

Peace,
Kevin

Re: textbox background in TinyMCE

Posted: Thu Jul 14, 2005 10:33 pm
by claystorm
Ok, so that did change it in firefox / "standards-following browser", but there has to be a way to do it for IE, as I have seen text area’s with background colors. I know that I am going to get killed for saying this one, but I am really not a big fan of Firefox / mozilla browser. I just keep them on my system for testing stuff.

My other problem with just editing the CSS file (if I was to use Firefox), is that each time there is an upgrade to the software, that file is going to get written over. So, to me that does not seem like a true fix.

Re: textbox background in TinyMCE

Posted: Thu Jul 14, 2005 11:46 pm
by Ted
in stylesheet.php, there is the line:

Code: Select all

$css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '\\1transparent\\2', $css);
Basically, it's replacing all background-color values with transparent.

Instead, do:

Code: Select all

$css = preg_replace('/(\w*?background-color.*?\:\w*?).*?(;.*?)/', '\\1green\\2', $css);
Obxious color choice, yes, but you should be able to see it clearly.  :)

Re: textbox background in TinyMCE

Posted: Fri Jul 15, 2005 2:51 pm
by claystorm
Thank you!