CKEDITOR.ui.button
Represents a button UI element. This class should not be called directly. To create new buttons use CKEDITOR.ui.addButton instead.
Filtering
Methods
-
constructor( definition ) → button
CKEDITOR.ui.button#constructor
Creates a button class instance.
Parameters
definition : Object
The button definition.
Returns
button
-
getState() → Number
CKEDITOR.ui.button#getState
Gets the button state.
Returns
Number
The button state. One of CKEDITOR.TRISTATE_ON, CKEDITOR.TRISTATE_OFF, or CKEDITOR.TRISTATE_DISABLED.
-
render( editor, output )
CKEDITOR.ui.button#render
Renders the button.
Parameters
editor : editor
The editor instance which this button is to be used by.
output : Array
The output array to which the HTML code related to this button should be appended.
-
setState( state )
CKEDITOR.ui.button#setState
Sets the button state.
Parameters
state : Number
Indicates the button state. One of CKEDITOR.TRISTATE_ON, CKEDITOR.TRISTATE_OFF, or CKEDITOR.TRISTATE_DISABLED.
-
Returns this button's CKEDITOR.feature instance.
It may be this button instance if it has at least one of
allowedContent
andrequiredContent
properties. Otherwise, if a command is bound to this button by thecommand
property, then that command will be returned.This method implements the CKEDITOR.feature.toFeature interface method.
Parameters
Editor : editor
instance.
Returns
feature
The feature.