StylesXmlPath"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

 
Line 1: Line 1:
== StylesXmlPath ==
 
 
 
This option sets the path to the XML file wich contains the style definitions.  
 
This option sets the path to the XML file wich contains the style definitions.  
  
Code:
+
By default the editor loads the "fckstyles.xml" file, placed in the editor installation directory. You may point it to another file located outside the editor folder, making it easier to maintain editor upgrades. For example, you may have a directory named "fckeditor_assets" containing all your custom files, while the editor is installed in the "fckeditor" folder. In this case, just set StylesXmlPath as follows:  
<pre>FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml'&nbsp;;
+
<pre>FCKConfig.StylesXmlPath = '/fckeditor_assets/fckstyles.xml'&nbsp;;
 
</pre>
 
</pre>

Latest revision as of 14:15, 27 May 2008

This option sets the path to the XML file wich contains the style definitions.

By default the editor loads the "fckstyles.xml" file, placed in the editor installation directory. You may point it to another file located outside the editor folder, making it easier to maintain editor upgrades. For example, you may have a directory named "fckeditor_assets" containing all your custom files, while the editor is installed in the "fckeditor" folder. In this case, just set StylesXmlPath as follows:

FCKConfig.StylesXmlPath = '/fckeditor_assets/fckstyles.xml' ;
This page was last edited on 27 May 2008, at 14:15.