<html>
<body>
In OpenCms 7<br>
I've setup a template stylesheet (aspawd_fam.css) under
/system/resources/, and refer to this in the template property of my
template. The styles get picked up by FCKeditor OK (eg BODY is rendered
my way).<br>
I'm now trying to get the custom styles to be listed in dropdown, so
followed
<a href="http://www.opencms-wiki.org/FCKEditor" eudora="autourl">
http://www.opencms-wiki.org/FCKEditor</a>, creating
aspawd_fam.css_style.xml, with test content:<br>
<?xml version="1.0" encoding="utf-8" ?><br>
<Styles><br>
<x-tab> </x-tab><Style
name="Custom Ruler" element="hr"><br>
<x-tab> </x-tab><x-tab>
</x-tab><Attribute
name="size" value="1" /><br>
<x-tab> </x-tab><x-tab>
</x-tab><Attribute
name="color" value="#ff0000" /><br>
<x-tab> </x-tab></Style><br>
</Styles><br><br>
However when now editing a regular page, <i>in IE7</i> I now get:<br>
<img src="cid:7.1.0.9.0.20081229175606.01ba5e58@j2ssolutions.com.0" width=474 height=126 alt="Emacs!">
<br>
Text is: 'Error loading
"/aspawdcms/opencms/system/resources/aspawd_fam.css_style.xml"
Do you want to see more info' On clicking OK, I get:<br>
<img src="cid:7.1.0.9.0.20081229175606.01ba5e58@j2ssolutions.com.1" width=488 height=237 alt="Emacs!">
<br>
Text is: <font face="Courier New, Courier">Status: 200...<br>
</font><pre> <?xml version="1.0"
encoding="utf-8" ?>
<Styles>
<x-tab> </x-tab><Style
name="Custom Ruler" element="hr">
<x-tab> </x-tab><x-tab>
</x-tab><Attribute
name="size" value="1" />
<x-tab> </x-tab><x-tab>
</x-tab><Attribute
name="color" value="#ff0000" />
<x-tab> </x-tab></Style>
</Styles>
</pre>(which seems correct) and on clicking OK, I get partly loaded
editor buttons etc with no user content.<br><br>
<i>And in Firefox 3.0.5:<br>
</i>I get same editor display, but with an error flagged, which FireBug
says is line 52 of fckeditorcode_gecko.js <br>
'D is null'<br><br>
I noticed that the place the CSS is stored in the example is
<i>/system/modules/your.module.name/resources/css/yourcss.css</i>
where as mine is in equivalent of
<i>/system/resources/yourcss.css.</i> Should this matter?<br><br>
BTW If I'm not using header 1 (H1) can this be suppressed in style
list?<br><br>
<x-sigsep><p></x-sigsep>
<hr>
<i>Jon Sharp tel: +44 1273 504004
mobile: +44 7739 430793 <br>
</i></body>
</html>