Add undo/redo to code editor.