Add undo/redo support for add content operation.