The ButtonSuperscript class provides functionality for applying superscript style to a text selection.
Lifecycle. Invoked once, both on the client and server, immediately before the initial rendering occurs.
Lifecycle. Invoked immediately before a component is unmounted from the DOM.
Executes a CKEditor command and fires
Optional data to be passed to CKEDITOR's
Lifecycle. Returns the default values of the properties used in the widget.
The default properties.
Returns the list of state classes associated to the current element's state, according to the results of the isActive and isDisabled methods.
A string with the state CSS classes.
Returns instance of CKEDITOR.style which represents the current button style.
The current style representation.
Checks if style is active in the current selection.
True if style is active, false otherwise.
Lifecycle. Renders the UI of the button.
The content which should be rendered.
The command that should be executed.
The editor instance where the component is being used.
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 that the command may cause the editor to have a different.
Object | String
The style the button should handle. Allowed values are:
- Object as described by http://docs.ckeditor.com/#!/api/CKEDITOR.style.
- String pointing to an object inside the editor instance configuration. For example,
style = 'coreStyles_bold'will try to retrieve the style object from
editor.config.coreStyles_bold. Nested properties such as
style = 'myplugin.myConfig.myStyle'are also supported and will try to retrieve the style object from the editor configuration as well.
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.