CKEDITOR.ui.button.handler

class singleton

Represents the button handler object.

Properties

• contentsElement : elementCKEDITOR.ui.button.handler#contentsElement

The element in the host page's document that contains the editor content. If the fixed editor UI is used, then it will be set to editor.ui.space( 'contents' ) — i.e. the <div> which contains the editor <iframe> (in case of classic editor) or CKEDITOR.editable (in case of inline editor). Otherwise it is set to the CKEDITOR.editable itself.

Use the position of this element if you need to position elements placed in the host page's document relatively to the editor content.

var editor = CKEDITOR.instances.editor1;
console.log( editor.ui.contentsElement.getName() ); // 'div'


Methods

• create( definition ) → buttonCKEDITOR.ui.button.handler#create

Transforms a button definition into a CKEDITOR.ui.button instance.

Parameters

definition : Object

Returns

button