mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
if a non-media link pasted, paste the url text directly
This commit is contained in:
parent
e8777e8630
commit
14597bd888
1 changed files with 1 additions and 1 deletions
|
@ -900,7 +900,7 @@ to a cloze type first, via Edit>Change Note Type."""))
|
||||||
def urlToLink(self, url):
|
def urlToLink(self, url):
|
||||||
fname = self.urlToFile(url)
|
fname = self.urlToFile(url)
|
||||||
if not fname:
|
if not fname:
|
||||||
return ""
|
return url
|
||||||
return self.fnameToLink(fname)
|
return self.fnameToLink(fname)
|
||||||
|
|
||||||
def fnameToLink(self, fname):
|
def fnameToLink(self, fname):
|
||||||
|
|
Loading…
Reference in a new issue