[opencms-dev] getting custom styles into the FCKeditor menubar
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Tue Apr 8 13:31:40 CEST 2008
Arghh!
Minutes later I solved it: The changes I made to the custom file were in
a <!-- commented area !
Sorry.
ANd to answer my question: It is the template property of the jsp that
has to point to the stylesheet file.
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
On Tue, Apr 08, 2008 at 01:13:11PM +0200, Christoph P. Kukulies wrote:
> I'm trying without success so far to make my styles available in
> FCKEditor (7.0.4 that is).
>
> /export/system/modules/org.opencms.workplace.help/jsptemplates/help_body.jsp.html_1920383497.html
> says:
>
> FCKeditor custom styles
> -----------------------
>
> The FCKeditor supports user defined styles to select from for content
> editors. To show these styles, a plain text file containing the style
> definition XML code has to be placed in the same folder where the
> template CSS style sheet is located in the OpenCms virtual file system
> (VFS). Remember to set the "template" property of the OpenCms template
> file to the absolute VFS path of the style sheet. This ensures that the
> WYSIWYG editor correctly displays the styles defined for the template.
>
> The file containing the XML code has to be exactly named like the file
> name of the CSS with the suffix "_style.xml" added. E.g. for the CSS
> file "style.css" the style definition file has to be named
> "style.css_style.xml". An example for a style XML syntax can be found in
> the VFS folder
> "/system/workplace/resources/editors/fckeditor/fckstyles.xml".
>
> Details about the usage and configuration of this editor can be found at
> the documentation homepage.
>
>
> -------------------------------------------------------------------------
>
> I have a file
>
> /site/mysite/index.html
>
> This has a template property assigned:
>
> /system/modules/org.mycompany.frontend/templates/main.jsp
>
> I have a stylesheet:
>
> /system/modules/org.mycompany.frontend/resources/yaml/screen/content.css
>
> and a style xml-file:
>
> /system/modules/org.mycompany.frontend/resources/yaml/screen/content.css_style.xml
>
> Now when I set either the "stylesheet"-porperty or the
> "template"-property main.jsp to the path of the stylesheet:
> /system/modules/org.mycompany.frontend/resources/yaml/screen/content.css
>
> FCKEditor doesn't care a bag of beans about it. I changed some
> Style-Entries to something like MyHeading but it doesn't show up in
> FCKEditor.
>
> What am I doing wrong?
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list