How to remove the site theme from the FCKeditor text box...

wposey - November 21, 2008 - 12:49

Drupal 6.6 and the latest FCK editor. I'm also running the ubiquity theme.

All the FCKeditor "text box's" that you enter information into on each page looks like this....

http://www.panhandleumpires.com/panhandle/images/fck_background.JPG

Can you guys please help me figure out how to remove this?

FCKeditor CSS

matkeane - November 21, 2008 - 14:02

Hi,

The FCKeditor iFrame contains its own html & body tags, which is why it looks like one of your site's pages. One way around this is to be very specific with all your CSS selectors in the theme style.css file.

Another, I think simpler, way is to tweak the FCKeditor settings:

Head over to the FCKeditor config settings at /admin/settings/fckeditor and edit the profile you're using. Under the 'CSS' heading, change the 'Editor CSS' field to something other than 'theme CSS', which is causing FCKeditor to use your theme's style.css file.

For example, I set it to 'Define CSS' and then set the next field to: %h%tfck_editorarea.css
... so FCKeditor is using the CSS file at: sites/example.com/themes/mytheme/fck_editorarea.css

Then put any styling you want in that file. Bear in mind that those styles will only apply when editing the node; when the node is viewed, it will use the style.css, so if you want the same styles in both you'll need to copy them to both files. I know that seems a bit clumsy, but it means you can use different styling while editing.

This is for the D5 version of the FCKeditor module, but I think the settings are similar in the D6 version.

Thank you I saw the option

wposey - November 21, 2008 - 15:37

Thank you I saw the option for "FCKeditor default" and just selected that and now it seems to be fine.

Thanks!

I'm 2/2 on getting help and solutions to my questions! Thank you again so much for the help!!!!!!

You're welcome

matkeane - November 21, 2008 - 17:44

You're welcome. Glad you're finding the forums helpful although, to be fair, I think you broke some of the unwritten rules of forum etiquette - namely ...

  • Your question had a sensible title which gave a pretty good idea of what the problem was (instead of just 'Help, it doesn't work!'),
  • Your post explained the problem in enough detail, including which version of Drupal and the module you were using, and even included a useful screenshot, making it easy to clearly identify the problem,
  • You didn't whine, and threaten to install Joomla instead, if somebody didn't help you within 2 minutes of posting.

I mean, c'mon, if everybody posted questions like that, the Drupal community would never be able to keep up! Anyway, as somebody on #drupal said after bailing me out when I toasted Drupal's entire menu system: 'pass it forward'. Next time you see a question about FCKeditor CSS problems, you'll be able to help!

 
 

Drupal is a registered trademark of Dries Buytaert.