because the FCKEditor module edit window runs in an iframe, the backgound image specified in the style.css for the theme displays in the edit window as well, which is distracting.

I hacked around it by putting an ID on the in the page generator:
$ diff page.tpl.php page.tpl.php.orig
23c23
< print $body_classes; ">
---
> print $body_classes; ">

then using that id in the style.css:
$ diff style.css style.css.orig
102c102
< body#mainbody{
---
> body{

this is, of course, just one way to fix the issue; but it makes the theme look better if using any iframes...

thanks for the great theme!

Comments

toddgee’s picture

OOps... that first diff should read like this:
$ diff page.tpl.php page.tpl.php.orig
23c23
< print $body_classes; ">
---
> print $body_classes; ">

(got removed because it looks like HTML :^)

toddgee’s picture

Crap... one more time:

$ diff page.tpl.php page.tpl.php.orig 
23c23
< <body id="mainbody" class="<?php print $body_classes; ?>">
---
> <body class="<?php print $body_classes; ?>">
Anonymous’s picture

Status: Active » Closed (won't fix)

I would simply recommend to create your own stylesheet for fck, and in general avoid using the theme css. Then you'll have a full control over the result and will avoid tons of display errors.

johnTEN’s picture

I have the same problem but I dont understand what you mean by "putting an ID on the in the page generator:' or where I would do that

bethhauck’s picture

I like to use the theme css because if my styles change, I don't have to recreate them in fckeditor. But fortunately I'm using my admin theme for content editing, and the body tag in my front end theme has different classes. So I just add my front end theme's body classes to the selector, and the fckeditor body doesn't get a background:

body.not-front, body.front
{
padding: 10px 0px 0px 0px;
background:#c3c38f url(images/page-bg.jpg) repeat-x top left;
}

In my case the two classes .front and .not-front cover every page of the site - but of course which classes you need to add would depend on your theme.