Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
Adds a style-property to the current selection of text. If there is an
existing tag around the exact selection, the property gets added to this
tag. A -tag will be created otherwise.
Wraps the current text-selection with the provided tags. If no text is
selected, an empty tag-pair is inserted at the current cursor position.
If the field is not focused, the empty tag-pair is appended to the current
text.
Wraps the current text-selection a symmetric pair of tags. If no text is
selected, an empty tag-pair is inserted at the current cursor position.
If the field is not focused, the empty tag-pair is appended to the current
text.