clear undo when document is read (aka editor.setText). make this v1.1.0