clearFormats

Clears all currently active formats.

If text is selected, all formats are removed from the selection. If no text is selected (cursor is collapsed), all typing attributes are cleared.