mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
if there's no html and we have an image, use that (#915)
This commit is contained in:
parent
e2d2b759a4
commit
3007d884b8
1 changed files with 2 additions and 0 deletions
|
@ -1123,6 +1123,8 @@ class EditorWebView(AnkiWebView):
|
|||
for url in self.editor.mw.col.media.filesInStr(
|
||||
mid, html, includeRemote=True):
|
||||
newHtml += self.editor.urlToLink(url)
|
||||
if not newHtml and mime.hasImage():
|
||||
return self._processImage(mime)
|
||||
newMime.setHtml(newHtml)
|
||||
else:
|
||||
# use .text() if available so newlines are preserved; otherwise strip
|
||||
|
|
Loading…
Reference in a new issue