I use custom stylesheets for different websites.
I'm determining which stylesheet to use based on cookie settings within the CMS I'm using. So far, so good. This all works excellent in Firefox 1.06.
In IE6 however, this is entered in the contentarea of the editor:
undefined
<link href="/editor/editor/css/custom_site1.css" type="text/css" rel="stylesheet" />
Basically, it just doesn't work. The styles in the css (such as body background) aren't used in the editor, and I get this 'undefined' message.
Anyone any idea how to resolve this? In 2.0FC this still worked flawlessly, but apparently *something* has changed.
I'm determining which stylesheet to use based on cookie settings within the CMS I'm using. So far, so good. This all works excellent in Firefox 1.06.
In IE6 however, this is entered in the contentarea of the editor:
undefined
<link href="/editor/editor/css/custom_site1.css" type="text/css" rel="stylesheet" />
Basically, it just doesn't work. The styles in the css (such as body background) aren't used in the editor, and I get this 'undefined' message.
Anyone any idea how to resolve this? In 2.0FC this still worked flawlessly, but apparently *something* has changed.
RE: IE error with custom css file
My bad.
Apparently the styles in the css file ARE used correctly .. however the "undefined"+ <link>-tag do show up in IE.
If I switch from normal view to source and back , the
undefined
<link href="/editor/editor/css/custom_site1.css" type="text/css" rel="stylesheet" />
text is also duplicated.
Again, only in IE. FF works fine
RE: IE error with custom css file
Anyone got an idea?
RE: IE error with custom css file
Can't you just set the FCKConfig.EditorAreaCSS config setting (through javascript at runtime or with any scripting language you're using when initialising the editor), see the wiki (http://wiki.fckeditor.net/): E.g. for PHP (http://wiki.fckeditor.net/Developer%27s ... ration/PHP)