The ButtonStyles class provides functionality for styling a selection with a list of configurable and customizable styles. The allowed styles follow CKEDITOR.Style configuration (http://docs.ckeditor.com/#!/api/CKEDITOR.style)
Checks if the given style definition is applied to the current selection in the editor.
Style definition as per http://docs.ckeditor.com/#!/api/CKEDITOR.style.
Returns true if the style is applied to the selection, false otherwise.
Returns an array of styles. Each style consists from two properties:
- name - the style name, for example "h1"
- style - an object with one property, called
elementwhich value represents the style which have to be applied to the element.
An array of objects containing the styles.
Lifecycle. Renders the UI of the button.
The content which should be rendered.
The editor instance where the component is being used.
Indicates whether the styles list is expanded or not.
The name which will be used as an alias of the button in the configuration.
The label that should be used for accessibility purposes.
Indicates whether the remove styles item should appear in the styles list.
List of the styles the button is able to handle.
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.
Callback provided by the button host to notify when the styles list has been expanded.