Closed (fixed)
Project:
Marinelli
Version:
6.x-2.96
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2009 at 07:00 UTC
Updated:
19 Oct 2009 at 17:04 UTC
When you use the FCKeditor with any of the Marinelli themes, the background of the editor has the same background and font as the theme, making it imposable to read or use. Image attached to this post.
| Comment | File | Size | Author |
|---|---|---|---|
| marinelli_fckeditor_issue.JPG | 60.05 KB | imnotcreative |
Comments
Comment #1
imnotcreative commentedSorry about this. It was actually a FCKeditor specific setting.
Administer / Site configuration / Edit FCKeditor profile / CSS / Editor CSS: FCKeditor default
Comment #3
denni commentedThis will do the trick http://drupal.fckeditor.net/tricks
This is quote
"
All we need to do is to tell FCKeditor to use that styles:
Edit FCKeditor profile, in the "CSS section" choose use theme css
In modules/fckeditor/fckeditor.config.js, add the following:
FCKConfig.BodyId = "primary";
FCKConfig.BodyClass = "singlepage";
Now our body inside of the FCKeditor gets the right ID.
Well we still have the wrong background and text alignment. To fix this, add another line in fckeditor.config.js:
FCKConfig.EditorAreaStyles = "body{background:#FFFFFF;text-align:left;}";
in newer versions of marinelli theme we may also need to adjust the font size, so if you need to, use the following code instead:
FCKConfig.EditorAreaStyles = "body{background:#FFFFFF;text-align:left;font-size:0.8em}";
Remember to clear your browser's cache after applying changes to javascript files.
"