Namespace CKEDITOR.config
Holds the default configuration settings. Changes to this object are
reflected in all editor instances, if not specificaly specified for those
instances.
Defined in: core/config.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Holds the default configuration settings.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
CKEDITOR.config.baseHref
The base href URL used to resolve relative and absolute URLs in the
editor content.
|
<static> |
CKEDITOR.config.corePlugins
A comma separated list of plugins that are not related to editor
instances.
|
<static> |
CKEDITOR.config.customConfig
The URL path for the custom configuration file to be loaded.
|
<static> |
CKEDITOR.config.plugins
Comma separated list of plugins to load and initialize for an editor
instance.
|
<static> |
CKEDITOR.config.startupMode
The mode to load at the editor startup.
|
<static> |
CKEDITOR.config.theme
The theme to be used to build the UI.
|
<static> |
CKEDITOR.config.toolbarLocation
The "theme space" to which rendering the toolbar.
|
Namespace Detail
CKEDITOR.config
Since:
3.0
Holds the default configuration settings. Changes to this object are
reflected in all editor instances, if not specificaly specified for those
instances.
// All editor created after the following setting will not load custom // configuration files. CKEDITOR.config.customConfig = '';
Field Detail
<static>
{String}
CKEDITOR.config.baseHref
Since:
3.0
The base href URL used to resolve relative and absolute URLs in the
editor content.
config.baseHref = 'http://www.example.com/path/';
- Default Value:
- '' (empty string)
<static>
CKEDITOR.config.corePlugins
Since:
3.0
A comma separated list of plugins that are not related to editor
instances. Reserved to plugins that extend the core code only.
There are no ways to override this setting, except by editing the source code of CKEditor (_source/core/config.js).
There are no ways to override this setting, except by editing the source code of CKEditor (_source/core/config.js).
<static>
{String}
CKEDITOR.config.customConfig
Since:
3.0
The URL path for the custom configuration file to be loaded. If not
overloaded with inline configurations, it defaults to the "config.js"
file present in the root of the CKEditor installation directory.
CKEditor will recursively load custom configuration files defined inside other custom configuration files.
CKEditor will recursively load custom configuration files defined inside other custom configuration files.
// Load a specific configuration file. CKEDITOR.replace( 'myfiled', { customConfig : '/myconfig.js' } );
// Do not load any custom configuration file. CKEDITOR.replace( 'myfiled', { customConfig : '' } );
- Default Value:
- '<CKEditor folder>/config.js'
<static>
{String}
CKEDITOR.config.plugins
Since:
3.0
Comma separated list of plugins to load and initialize for an editor
instance.
config.plugins = 'editingblock,toolbar,wysiwygarea';
- Default Value:
- 'editingblock,elementspath,sourcearea,toolbar,wysiwygarea'
<static>
{String}
CKEDITOR.config.startupMode
Since:
3.0
The mode to load at the editor startup. It depends on the plugins
loaded. By default, the "wysiwyg" and "source" modes are available.
config.toolbarLocation = 'source';
- Default Value:
- 'wysiwyg'
<static>
{String}
CKEDITOR.config.theme
Since:
3.0
The theme to be used to build the UI.
config.theme = 'default';
- Default Value:
- 'default'
<static>
{String}
CKEDITOR.config.toolbarLocation
Since:
3.0
The "theme space" to which rendering the toolbar. For the default theme,
the recommended options are "top" and "bottom".
config.toolbarLocation = 'bottom';
- Default Value:
- 'top'