Text Editor mostly done

need better way to handle undo and redo