mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
support pasting of http links that are not images/sounds
This commit is contained in:
parent
778e98cc7e
commit
e708f72a17
1 changed files with 3 additions and 0 deletions
|
@ -613,6 +613,9 @@ class FactEdit(QTextEdit):
|
||||||
elif ext in audio:
|
elif ext in audio:
|
||||||
name = self._retrieveURL(txt, ext)
|
name = self._retrieveURL(txt, ext)
|
||||||
self.parent._addSound(name, widget=self)
|
self.parent._addSound(name, widget=self)
|
||||||
|
else:
|
||||||
|
# not image or sound, treat as plain text
|
||||||
|
self.insertPlainText(source.text())
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self.insertPlainText(source.text())
|
self.insertPlainText(source.text())
|
||||||
|
|
Loading…
Reference in a new issue