Added support for some more editing features (undo and redo) in our different text-based editing views.