Re: How to change the language of FCKeditor?
Posted: Sat Aug 20, 2011 1:03 pm
Hello Christoph,
another nice result of your "trick" is that spell check now automatically selects the correct language.
Here is another one:
Put before the java script part this:
and in the java script part this:
and in your stylesheet.css change all
h1, h2, h3, h4 {bla bla}
h5 {bla}
h6 [bla}
to:
h1, h2, h3, h4, .SC_Item h1, .SC_Item h2, .SC_Item h3, .SC_Item h4 {bla bla}
h5 .SC_Item h5 {bla}
h6 .SC_Item h6 [bla}
another nice result of your "trick" is that spell check now automatically selects the correct language.
Here is another one:
Put before the java script part this:
Code: Select all
$toolbarcss = "../../".$pth['folder']['template']."stylesheet.css";
Code: Select all
oFCKeditor.Config["ToolbarComboPreviewCSS"] = \''.$toolbarcss.'\' ;
h1, h2, h3, h4 {bla bla}
h5 {bla}
h6 [bla}
to:
h1, h2, h3, h4, .SC_Item h1, .SC_Item h2, .SC_Item h3, .SC_Item h4 {bla bla}
h5 .SC_Item h5 {bla}
h6 .SC_Item h6 [bla}