favour images over urls when pasting

fixes dragging of images from safari+google images, and pasting of
'copy image' from chrome
This commit is contained in:
Damien Elmes 2018-05-01 12:47:41 +10:00
parent 47370af7c3
commit 5bf3349e05

View File

@ -834,7 +834,7 @@ class EditorWebView(AnkiWebView):
html, internal = self._processHtml(mime)
if html:
return html, internal
for fn in (self._processUrls, self._processImage, self._processText):
for fn in (self._processImage, self._processUrls, self._processText):
html = fn(mime)
if html:
return html, False