Fixed copy/paste in case of modal dialogs

I have added a new option to CellExternalCopyManager to fix copy/paste in case of modal dialogs.