Bsp.: In der /include/inc_ext/fckeditor/fckstyles.xml
Code: Select all
<Style name="Kreis rot - links" element="span">
<Attribute name="class" value="fck_rund_rot" />
</Style>
CSS
in /template/inc_css/frontend.css
und
/include/inc_ext/fckeditor/editor/css/fck_editorarea.css (wenn dein style auch im Editor sichtbar sein soll).
Code: Select all
.fck_rund_rot {
background: url(../../picture/upload/images/16x16/rund_rot.gif) no-repeat 0px top;
padding-left: 16px;
}
Für die Darstellung im Frontend wird die Klasse einfach in eine CSS-Datei eingetragen, die während deines Seitenaufrufs aktiv ist, hier z.B. frontend.css.
Für die Darstellung im BE muss dann die fck_editorarea.css herhalten.
Die Dateinamen/orte können in der /include/inc_ext/fckeditor/fckconfig.js umgestellt werden. z.B.
Code: Select all
/* FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; */
FCKConfig.EditorAreaCSS = '/template/inc_css/fck_editorarea.css' ;
/* FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; */
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'my_fckstyles.xml' ;
/* FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; */
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'my_fcktemplates.xml' ;
Rufe doch bitte einmal einige fertige Styles in einem Testtext auf und schau dir den generierten Quellkode an. Dann wird klar was dort passiert.
Knut