FCKeditor - show site style formats

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
stratfd

FCKeditor - show site style formats

Post 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
marcgeldon
Forum Members
Forum Members
Posts: 45
Joined: Mon Aug 14, 2006 1:13 pm

Re: FCKeditor - show site style formats

Post by marcgeldon »

I have the same problem and currently I have also no solution for this.
chrisl
Forum Members
Forum Members
Posts: 57
Joined: Fri Dec 30, 2005 10:08 am

Re: FCKeditor - show site style formats

Post 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'
Locked

Return to “CMSMS Core”