The ButtonTwitter class provides functionality for creating a link which allows people to tweet part of the content in the editor.
Generates the appropriate twitter url based on the selected text and the configuration options received via props.
A valid twitter url with the selected text and given configuration.
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.
Creates or removes the twitter link on the selection.
Checks if the current selection is contained within a link that points to twitter.com/intent/tweet.
True if the selection is inside a twitter link, false otherwise.
Lifecycle. Renders the UI of the button.
The content which should be rendered.
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.
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.