Page 1 of 1

FCKeditor - show site style formats

Posted: Sun Jan 21, 2007 9:58 am
by stratfd
Using current CMSMS 1.0.3 and FCKEditor.
Have tried using the EditorAreaCSS config item to specify a stylesheet to use to display stuff in the editing window so it looks similar to my site (NB this is NOT trying to put styles into the style dropdown in the toolbar).

After many hours trying various config files and locations, I have still had no luck.

Is this feature broken? If not, can anyone shed any light on the correct syntax, file to edit etc.

Thanks in advance
Tony Stratford

Re: FCKeditor - show site style formats

Posted: Thu Mar 01, 2007 7:11 pm
by marcgeldon
I have the same problem and currently I have also no solution for this.

Re: FCKeditor - show site style formats

Posted: Sat Mar 03, 2007 12:45 pm
by chrisl
FCK editing area takes the styles from the stylesheets attached to the page being edited.

This is organised through

/modules/FCKeditorX/fck_editorarea.css.php

FCK's own area css at

\modules\FCKeditorX\FCKeditor\editor\css\fck_editorarea.css

is not used.

If you wanted to use this for some reason and add css styles manually you can change the following code in

/modules/FCKeditorX/FCKeditorX.module.php from

Code: Select all

$oFCKeditor->Config['EditorAreaCSS'] = $this->cms->config["root_url"].'/modules/FCKeditorX/fck_editorarea.css.php?id='.$templateid ;
to

Code: Select all

$oFCKeditor->Config['EditorAreaCSS'] = $this->cms->config["root_url"].'/modules/FCKeditorX/FCKeditor/fck_editorarea.css' ;
the same can be done if you wanted to add styles manually by reconfiguring the 'StylesXmlPath'