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 ) → buttonCKEDITOR.ui.button#constructorCreates a button class instance.
Parameters
definition : ObjectThe button definition.
Returns
button
getState() → NumberCKEDITOR.ui.button#getStateGets the button state.
Returns
NumberThe button state. One of CKEDITOR.TRISTATE_ON, CKEDITOR.TRISTATE_OFF, or CKEDITOR.TRISTATE_DISABLED.
render( editor, output )CKEDITOR.ui.button#renderRenders the button.
Parameters
editor : editorThe editor instance which this button is to be used by.
output : ArrayThe output array to which the HTML code related to this button should be appended.
setState( state )CKEDITOR.ui.button#setStateSets the button state.
Parameters
state : NumberIndicates 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
allowedContentandrequiredContentproperties. Otherwise, if a command is bound to this button by thecommandproperty, then that command will be returned.This method implements the CKEDITOR.feature.toFeature interface method.
Parameters
Editor : editorinstance.
Returns
featureThe feature.