Disable undo manager while adding annotations.