ButtonStylesListItemRemove Class
The ButtonStylesListItemRemove class provides functionality for previewing a style definition inside a list and applying it to the current editor selection.
Methods
_removeStyles
()
protected
Removes all inline styles and configured block elements applied to the current selection.
getDefaultProps
()
Object
Lifecycle. Returns the default values of the properties used in the widget.
Returns:
The default properties.
render
()
Object
Lifecycle. Renders the UI of the button.
Returns:
The content which should be rendered.
Properties
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: buttonStylesListItemRemove
label
String
The label that should be used for accessibility purposes.
removeBlocks
Array
Block styles that should be removed in addition to all other inline styles
Default: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre']
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.