Namespace: ckeditor

Drupal.editors. ckeditor

Methods

staticDrupal.editors.ckeditor._loadExternalPlugins(format)

Loads the required external plugins for the editor.

Name Type Description
format object

The text format used in the editor.

staticDrupal.editors.ckeditor.attach(element, format){bool}

Editor attach callback.

Name Type Description
element HTMLElement

The element to attach the editor to.

format string

The text format for the editor.

Returns:
Type Description
bool Whether the call to CKEDITOR.replace() created an editor or not.

staticDrupal.editors.ckeditor.attachInlineEditor(element, format, mainToolbarId, floatedToolbarId){bool}

Attaches an inline editor to a DOM element.

Name Type Description
element HTMLElement

The element to attach the editor to.

format object

The text format used in the editor.

mainToolbarId string optional

The id attribute for the main editor toolbar, if any.

floatedToolbarId string optional

The id attribute for the floated editor toolbar, if any.

Returns:
Type Description
bool Whether the call to CKEDITOR.replace() created an editor or not.

staticDrupal.editors.ckeditor.detach(element, format, trigger){bool}

Editor detach callback.

Name Type Description
element HTMLElement

The element to detach the editor from.

format string

The text format used for the editor.

trigger string

The event trigger for the detach.

Returns:
Type Description
bool Whether the call to CKEDITOR.dom.element.get(element).getEditor() found an editor or not.

staticDrupal.editors.ckeditor.onChange(element, callback){bool}

Reacts on a change in the editor element.

Name Type Description
element HTMLElement

The element where the change occured.

callback function

Callback called with the value of the editor.

Returns:
Type Description
bool Whether the call to CKEDITOR.dom.element.get(element).getEditor() found an editor or not.