(Configuration) |
(No difference)
|
Revision as of 18:43, 8 July 2009
Numerous configuration options included in CKEditor enable the developer to customize the appearance, features and behavior of the editor accordingly to end user needs.
Main configuration file is called config.js and is placed in the root of the CKEditor installation directory. The default configuration of CKEditor can be overridden either by editing the main configuration file or by changing the settings in separate file.
Editing the main configuration file is not recommended as the customized configuration settings will be lost every time the CKEditor is updated to a newer version. Default custom configuration file is called ‘config.js’ and is placed in the root directory of CKEditor. If you want your settings to be stored in a different location, you need to point the CKeditor to use them. This is done by editing the main configuration file e.g. CKEDITOR.replace( 'myfiled', { customConfig : '/myconfig.js' } );
The above line will load myconfig.js configuration file. CKEditor recursively loads custom configuration files defined inside other custom configuration files.
In order to amend default settings of CKEditor, your custom configuration file needs to be edited to include required settings
e.g. config.defaultLanguage = 'de';
Custom configuration file does not need to contain all available settings, it is enough to include only the ones that you want to change.
NOTE: Do not delete nor move config.js file from _source\core directory!