You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the functionality of dragging and dropping external objects(e.g. files, hyperlinks) into webview2 is default enabled in webview2 and there is no way to disable it. Some developers may want to disbale this functionality in their applications based upon their scenarios. According to such feature requirements, we add the new API to provide developers with the capability to configure the external drag&drop functionality.
2
+
Currently dragging and dropping external objects(e.g. files, hyperlinks) into webview2 is by default enabled and there is no way to disable it. Some developers may want to disable this functionality in their applications. To allow for this, we add a new API to provide developers with the capability to disable the external drag & drop functionality.
3
3
4
4
# Description
5
5
We add a new `AllowExternalDrop` property in `CoreWebView2Controller`.
6
-
This API allows end developers to toggle the external drag&drop functionality easily.
7
-
If it's disabled, drag&drop objects from outside into current webview2 will be forbidden.
6
+
This API allows end developers to toggle the external drag & drop functionality easily.
7
+
If it's disabled, dragging objects from outside the bounds of the WebView and dropping into the WebView will be disallowed.
8
8
To be more specific, some behaviors listed below will be impacted by the toggle of this property.
9
9
10
10
* Drag&Drop files on disk to webview2
11
11
* Drag&Drop hyperlinks from browser to webview2
12
12
* Drag&Drop hyperlinks from one webview2 to another webview2
13
13
14
-
Some behaviors are not impacted by the toggle of this property like drag&drop selected text to webview2. That means toggle of this property has no impact on the expected behavior of this action.
14
+
Some behaviors are not impacted by the toggle of this property like dragging and dropping selected text to webview2. That means toggle of this property has no impact on the expected behavior of this action.
15
15
16
16
By default, AllowExternalDrop is enabled to keep consistent with the behavior we had before the API is added.
17
17
18
-
Please note that drag&drop anything from webview2 to external(outside current webview2) will not be impacted by this property.
18
+
Please note that drag and drop anything from webview2 to external(outside the bounds of the WebView) will not be impacted by this property.
0 commit comments