Undo/Redo for editors, part 1