textbox background in TinyMCE

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
claystorm
Forum Members
Forum Members
Posts: 13
Joined: Thu Jul 14, 2005 8:33 pm

textbox background in TinyMCE

Post 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
claystorm
Forum Members
Forum Members
Posts: 13
Joined: Thu Jul 14, 2005 8:33 pm

Re: textbox background in TinyMCE

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: textbox background in TinyMCE

Post 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.  :)
claystorm
Forum Members
Forum Members
Posts: 13
Joined: Thu Jul 14, 2005 8:33 pm

Re: textbox background in TinyMCE

Post by claystorm »

Thank you!
Post Reply

Return to “CMSMS Core”