Fixed undo with plaintext
Fixed issue with the text area switching between richtext