Undo for text added, command history for undo added