undo

fun undo()

Reverts the most recent change made to the text or rich text spans. If canUndo is false, this operation does nothing.