From 5bf3349e0512d350ed8bada4bee0350a31cfc6e1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 1 May 2018 12:47:41 +1000 Subject: [PATCH] favour images over urls when pasting fixes dragging of images from safari+google images, and pasting of 'copy image' from chrome --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index ebd3d18b5..46aef01f9 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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