Is there a way to block drag&drop drops into a WKWebView in iOS 11? -


if have contenteditable part of html loaded in wkwebview, webview seems automatically accept drops of various types images , text. there way stop , allow content types drop?

you in javascript

<script>     function stopdrop(event) {         // stop default action         e.originalevent.stoppropagation();         e.originalevent.preventdefault();          // process dragged files         var files = e.originalevent.datatransfer.files         (var f in files) {             ...         }     } </script> <div ondrop="stopdrop(event)"></div> 

Comments