Show:

The ButtonParagraphCenter class provides functionality for centering a paragraph.

Methods

execCommand

(
  • data
)

Executes a CKEditor command and fires actionPerformed event.

Parameters:

  • data Object=

    Optional data to be passed to CKEDITOR's execCommand method.

getDefaultProps

() Object

Lifecycle. Returns the default values of the properties used in the widget.

Returns:

Object:

The default properties.

getStateClasses

() String

Returns the list of state classes associated to the current element's state, according to the results of the isActive and isDisabled methods.

Returns:

String:

A string with the state CSS classes.

isActive

() Boolean

Checks if the command is active in the current selection.

Returns:

Boolean:

True if the command is active, false otherwise.

render

() Object

Lifecycle. Renders the UI of the button.

Returns:

Object:

The content which should be rendered.

Properties

command

String

The command that should be executed.

editor

Object

The editor instance where the component is being used.

key

String static

The name which will be used as an alias of the button in the configuration.

Default: paragraphCenter

label

String

The label that should be used for accessibility purposes.

modifiesSelection

Boolean

Indicates that the command may cause the editor to have a different.

tabIndex

Number

The tabIndex of the button in its toolbar current state. A value other than -1 means that the button has focus and is the active element.