// When used according to an element:
// <element>contents</element>^ (range is anchored in element's parent)
// When used according to a text node:
// "text"^ (range is anchored in text node's parent)

// When used according to an element:
// ^<element>contents</element> (range is anchored in element's parent)
// When used according to a text node:
// ^"text" (range is anchored in text node's parent)

The full URL for the CKEditor installation directory.
It is possible to manually provide the base path by setting a
global variable named CKEDITOR_BASEPATH. This global variable
must be set before the editor script loading.

Parameters

Adds CSS rules to be appended to the editor document.
This method is mostly used by plugins to add custom styles to the editor
document. For basic content styling the contents.css file should be
used instead.

Parameters

Adds a named CKEDITOR.template instance to be reused among all editors.
This will return the existing one if a template with same name is already
defined. Additionally, it fires the "template" event to allow template source customization.

Function called upon loading a custom configuration file that can
modify the editor instance configuration (CKEDITOR.editor.config).
It is usually defined inside the custom configuration files that can
include developer defined settings.

It is possible to provide a custom implementation of this
function by setting a global variable named CKEDITOR_GETURL.
This global variable must be set before the editor script
loading. If the custom implementation returns nothing (==null), the
default implementation is used.

It is also possible to create an inline editor from the <textarea> element.
If you do so, an additional <div> element with editable content will be created
directly after the <textarea> element and the <textarea> element will be hidden.

Parameters

element
:
Object | String

The DOM element or its ID.

[ instanceConfig ]
:
Object

The specific configurations to apply to this editor instance.
See CKEDITOR.config.

Returns

Forces the full CKEditor core code, in the case only the basic code has been
loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in
the first call or as soon as the full code is available.

Parameters

Replaces a <textarea> or a DOM element (<div>) with a CKEditor
instance. For textareas, the initial value in the editor will be the
textarea value. For DOM elements, their innerHTML will be used
instead. It is recommended to use <textarea> and <div> elements only.