from http://docs.fckeditor.net/FCKeditor_2.x ... ion/Styles I took the line
FCKConfig.EditorAreaCSS = '/myownstyles.css' ;
and transfered it into JS:
ed.Config["EditorAreaCSS"] = '/cms/css.php?site='+siteid;
... That works perfectly. But when I come to the XML.... taking the line:
FCKConfig.StylesXmlPath = '../fckstyles.xml' ;
and transfering it into:
ed.Config["StylesXmlPath"] = '/cms/cssxml.php?site='+siteid;
... that doesnt work and it continues to run off /cms/fckeditor/fckstyles.xml
Any ideas why one works and the other doesnt?? or more helpfully how to set the Styles XML file through JS?
I would like to point out that using;
$oFCKeditor->Config['StylesXmlPath'] = '/cms/cssxml.php?site=1';
in the php file that 'creates' the editor, does work.