FCKeditor configuration instructions:
The main configuration file of FCKeditor 2.0 is FCKeditor/fckconfig. js. Several important configuration items are as follows:
1. Change the configuration file:
$ Ofckeditor-> config ['customconfigurationspath'] = '/myconfig. js ';
Use this lineCodeYou can place the configuration file outside the FCKeditor directory.
Note that the original configuration file fckconfig. js cannot be deleted and must still be stored in the fckeidtor directory. In addition, after the configuration is changed, the browser cache should be cleared; otherwise, the latest page will not be displayed. If you are using IE, press Ctrl + F5 to force refresh.
2. toolbar Configuration
By default, FCKeditor calls the default toolbar button. Each element of the fckconfig. toolbarsets ["default"] array corresponds to a tool, which can be increased or decreased as needed.
3. Style)
FCKeditor's preset styles include image on right, image on left, title, code, etc. If you have a special format that you commonly use, you can add it by yourself. The files to be modified include:
Fckconfig. js
Fckconfig. fontformats =
Editor/_ source/classes/fcktoolbarfontformatcombo. js
VaR onames =
Editor/JS/fckeditorcode_ie_2.js and/Editor/JS/fckeditorcode_gecko_2.js
VaR onames =
Editor/lang/language file of your choice
Fontformats
Styles configuration file is an XML file, namely fckstyles. xml. You can also create an XML file and specify the configuration file as your XML file.
In the configured JS, modify fckconfig. stylesxmlpath = '../myfckstyles. xml ';
<? XML version = "1.0" encoding = "UTF-8"?>
<Styles>
<Style name = "my image" element = "IMG">
<Attribute name = "style" value = "padding: 5px"/>
<Attribute name = "border" value = "2"/>
</Style>
<Style name = "italic" element = "em"/>
<Style name = "title" element = "span">
<Attribute name = "class" value = "title"/>
</Style>
<Style name = "title H3" element = "H3"/>
</Styles>
4. configuration template
for template configuration, refer to fcktemplates. XML, defined by yourself, and then set as the default template configuration file:
fckconfig. templatesxmlpath = '/mytemplates. xml';