Wednesday, 15 September 2010

FCKEditor background color

An issue with the FCKeditor is that if you chance the background color for your main site, the editor background also changes, which makes editing a pain.

http://www.glfusion.org/forum/viewtopic.php?showtopic=30761

First find and edit

/public_html/fckeditor/fckconfig.js

Originally

FCKConfig.EditorAreaStyles = 'body { color:#000;margin-bottom:30px;} h1 {background:transparent;color:#000;font-size:1.4em;font-weight:700;margin:0 5px 0 0;} ul { list-style-position:outside;margin-left:5px;padding-left:15px;list-style:disc;vertical-align:middle;}' ;

Change to ( background:#FFFFFF ) is the main item

FCKConfig.EditorAreaStyles = 'body { background:#ffffff;margin-bottom:30px;} h1 {background:transparent;color:#000;font-size:1.4em;font-weight:700;margin:0 5px 0 0;} ul { list-style-position:outside;margin-left:5px;padding-left:15px;list-style:disc;vertical-align:middle;}' ;

The drupal boys also have some notes

http://drupal.org/node/204242

No comments: