SnippetMaster Support Forums
Return to main website
 
December 24, 2007, 12:23:47 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 24, 2007, 12:23:47 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: How to change the editor background color « previous next »
Pages: [1] Print
Author Topic: How to change the editor background color  (Read 778 times)
syberknight

Posts: 3


[-] How to change the editor background color
« on: February 05, 2007, 11:25:08 PM »

If you are like me, and haunted by having a dark page background with dark text on a light colored area (like a table cell or div), and SnippetMaster's editor only shows the dark text on the dark background if you've got your snippet area inside the light colored area...

...then here's the fix!

Simply add this line to the end of your main CSS file:

.mceContentBody { background-image: none; background-color: White; color: Black; } /*SnippetMaster editor bg color*/

Viola!

* BEFORE.png (28.89 KB, 99x150 - viewed 89 times.)
* AFTER.png (30.35 KB, 99x150 - viewed 83 times.)
« Last Edit: June 06, 2007, 02:43:03 PM by admin » Report to moderator   Logged
syberknight

Posts: 3


[-] Re: FIXED: Dark Edit Background
« Reply #1 on: June 06, 2007, 02:38:41 PM »

Hopefully somebody will find this helpful...

I expanded my work-a-round via instructions from http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css

So from now on, I just include these 3 classes to my global site css file (with appropriate values of course):

Quote
.mceContentBody { background-image: none; background-color: #002a53; color: #ccc; } /*TinyMCE*/
.mceContentBody a:link, .mceContentBody a:visited   { color: #fff !important;    text-decoration: underline; } /* FF requires a important here */
.mceContentBody a:hover, .mceContentBody a:active   { color: #99d9e8 !important; text-decoration: none; } /* FF requires a important here */

It works great.
Smile
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2086

SnippetMaster Author


WWW
[-] Re: FIXED: Dark Edit Background
« Reply #2 on: June 06, 2007, 02:42:34 PM »

Thanks!  I made this post a sticky so folks can easily find it.  Smile
Report to moderator   Logged
bobroosth

Posts: 2


[-] Re: How to change the editor background color
« Reply #3 on: June 27, 2007, 03:57:45 PM »

The background is problem for me as well, but putting this line into styles-originail.css and uploading that file does not change what I see. Am I changing the correct CSS?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2086

SnippetMaster Author


WWW
[-] Re: How to change the editor background color
« Reply #4 on: June 27, 2007, 11:15:46 PM »

Try either one of these solutions:

1. Create a *new* CSS file called "background.css" and then put the css lines in the previous post into it.   Then add the css file to your webpage being edited.  Snippetmaster will "read" the CSS file automatically, and the styles will be applied to the editor.

2. You can manually edit the /snippetmaster/includes/tiny_mce/themes/advanced/css/editor_ui.css file and add the styles to it.

I think #1 is easier, and makes the most sense as it's basically just making another CSS file...

(Or if you prefer, you can add those styles to your own existing css file for the page that is already there.)

« Last Edit: August 21, 2007, 11:43:20 AM by admin » Report to moderator   Logged
bobroosth

Posts: 2


[-] Re: How to change the editor background color
« Reply #5 on: June 28, 2007, 09:03:00 PM »

That works, but strangely. The original background color for the page is a medium dark blue. The text is a bit darker blue, but in a white table cell. When I set the mce background to white, the text turns white....

I take it the editor is trying to choose a contrasting color for the text.
Report to moderator   Logged
CarlSeiler

Posts: 5


[-] Re: How to change the editor background color
« Reply #6 on: June 29, 2007, 05:30:35 AM »

I think this is exactly what I was looking for.  I have a non-repeating background image in my main.css sheet that works fine given my main page's margins and text, but for the Snippet I'm wanting users to edit, the text goes right across the image, making it almost impossible to read.  These mce classes hopefully will allow me to override and get rid of the image when editing.

Carl
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 319



[-] Re: How to change the editor background color
« Reply #7 on: June 29, 2007, 05:59:15 AM »

I take it the editor is trying to choose a contrasting color for the text.

No, it can't do that! More likely is that you have specifiied color:#ffffff  for .mceContentBody 

In syberknight's second example above link text is white - you need to change the values to suit your own page/CSS
Report to moderator   Logged

Kelvyn
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: How to change the editor background color « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!