Dragging anything a webView accepts causes the editor to be replaced with the dragged item. Drag and drop operations should be either disabled or overridden to accept only text files and set the content of the editor instead of the webView.