Has anybody this option sucessfully used?
I try to load an external css file like this:
oFCKeditor.EditorAreaCSS = "http://www.server.com/file.css";
The content of the editor still shows the default fotsize and family. I also tried to load from the BasePath, same result.
Thanks for any help.
Stefan
Mon, 04/11/2005 - 19:35
#1
RE: EditorAreaCSS don't work
FCK.SetHTML();
This is where the editor area IFRAME is loaded. You will need to add code to support the CSS file load. I added a background color and a default style that matches my customer's website.
Also, if your site uses white, or light-colored text, you will need to edit toolbarcombo.js and toolbarspecialcombo.js to reflect the background otherwise you won't be able to see the sample style in the combo box.
Roger Wyatt
RE: EditorAreaCSS don't work
RC3 seems to be prepared for this feature without changing the code. (OK, it was introduces aready in RC1, so it seems to be a bug when it is also necessary to hack in RC2).
Continue looking for a solution...
Stefan
RE: EditorAreaCSS don't work
Sorry, I am also on RC3. Keep looking. The function SetHTML() does the trick you need.
I agree, you should be able to set the background color and default style class using the configuration file or through the Config class.
Roger Wyatt