mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
prefer clipboard image over url
This commit is contained in:
parent
a1ef0c2d73
commit
a09cd3f7a0
1 changed files with 3 additions and 3 deletions
|
@ -947,10 +947,10 @@ class EditorWebView(AnkiWebView):
|
||||||
# print "html", mime.html()
|
# print "html", mime.html()
|
||||||
# print "urls", mime.urls()
|
# print "urls", mime.urls()
|
||||||
# print "text", mime.text()
|
# print "text", mime.text()
|
||||||
if mime.hasUrls():
|
if mime.hasImage():
|
||||||
return self._processUrls(mime)
|
|
||||||
elif mime.hasImage():
|
|
||||||
return self._processImage(mime)
|
return self._processImage(mime)
|
||||||
|
elif mime.hasUrls():
|
||||||
|
return self._processUrls(mime)
|
||||||
elif mime.hasText() and (self.strip or not mime.hasHtml()):
|
elif mime.hasText() and (self.strip or not mime.hasHtml()):
|
||||||
return self._processText(mime)
|
return self._processText(mime)
|
||||||
elif mime.hasHtml():
|
elif mime.hasHtml():
|
||||||
|
|
Loading…
Reference in a new issue