mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix images not pasting as links
This commit is contained in:
parent
23a3413c23
commit
a389987530
1 changed files with 3 additions and 1 deletions
|
@ -942,7 +942,9 @@ class EditorWebView(AnkiWebView):
|
|||
return
|
||||
|
||||
data = open(path, "rb").read()
|
||||
return self.editor._addPastedImage(data, ext)
|
||||
fname = self.editor._addPastedImage(data, ext)
|
||||
if fname:
|
||||
return self.editor.fnameToLink(fname)
|
||||
|
||||
def flagAnkiText(self):
|
||||
# be ready to adjust when clipboard event fires
|
||||
|
|
Loading…
Reference in a new issue