prioritize html over images to fix MS issue (#449)
this means that copying&pasting images on linux/firefox will redownload the image which is wasteful, but Windows users make up the majority of the userbase
This commit is contained in:
parent
f97abacb4a
commit
7ae90d7f7d
@ -1042,14 +1042,14 @@ class EditorWebView(AnkiWebView):
|
||||
# print "html", mime.html()
|
||||
# print "urls", mime.urls()
|
||||
# print "text", mime.text()
|
||||
if mime.hasImage():
|
||||
return self._processImage(mime)
|
||||
elif mime.hasUrls():
|
||||
if mime.hasUrls():
|
||||
return self._processUrls(mime)
|
||||
elif mime.hasText() and (self.strip or not mime.hasHtml()):
|
||||
return self._processText(mime)
|
||||
elif mime.hasHtml():
|
||||
return self._processHtml(mime)
|
||||
elif mime.hasImage():
|
||||
return self._processImage(mime)
|
||||
else:
|
||||
# nothing
|
||||
return QMimeData()
|
||||
|
Loading…
Reference in New Issue
Block a user