Line 5: | Line 5: | ||
All available configuration options can be found inside our API documentation, inside the [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.config.html CKEDITOR.config] object definition. | All available configuration options can be found inside our API documentation, inside the [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.config.html CKEDITOR.config] object definition. | ||
− | + | == Defining Configurations In-Page == | |
+ | |||
+ | The best way to set your configurations is in-page, when creating editor instances. In this way you avoid touching the original distribution files in the CKEditor installation folder, making the upgrade task easier. | ||
In-page settings can be passed to any of the editor instance creation functions, namely [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.html#.replace CKEDITOR.replace] and [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.html#.appendTo CKEDITOR.appendTo]. For example: | In-page settings can be passed to any of the editor instance creation functions, namely [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.html#.replace CKEDITOR.replace] and [http://docs.fckeditor.net/ckeditor_api/symbols/CKEDITOR.html#.appendTo CKEDITOR.appendTo]. For example: |
Revision as of 16:46, 21 August 2009
The editor comes with a rich set of configurations that makes it possible to customize its appearance, features and behavior. The main configuration file is named "config.js". You can find this file in the root of the CKEditor installation folder.
Available Configuration Options
All available configuration options can be found inside our API documentation, inside the CKEDITOR.config object definition.
Defining Configurations In-Page
The best way to set your configurations is in-page, when creating editor instances. In this way you avoid touching the original distribution files in the CKEditor installation folder, making the upgrade task easier.
In-page settings can be passed to any of the editor instance creation functions, namely CKEDITOR.replace and CKEDITOR.appendTo. For example:
CKEDITOR.replace( 'editor1', { toolbar : 'basic', uiColor : '# 9AB8F3' });