Disable Drag&Drop functionality

Hello Dear Support Team,

I select 2 documents and use the functionality of domain Loading WebViewer from another domain, in this new tab i have 2 documents to compare.
I want to disable the Drag&Drop functionality.
I use the following code, which can be found in the documentation:

WebViewer(…)
.then(function(instance) {
var Feature = instance.UI.Feature;

       instance.UI.disableFeatures([Feature.MultipleViewerMerging]);
     });

But it does not work.
please support me to reach this goal

Best Regards
Amir Kehtarian

1 Like

Hi Amir,

Thank you for reporting this issue.
We will investigate and let you know when we have further information.

Best Regards,
Ahmad Moaaz
Software Developer
Apryse
apryse.com

2 Likes

Hi Amir,

To call WebViewer APIs when it’s loaded from another domain, using the instance that resolves from the promise will not work.
You must use a config file instead.
Here is a guide on that.

Best Regards,
Ahmad Moaaz
Software Developer
Apryse
apryse.com

1 Like