mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
save text after drag-drop event
This commit is contained in:
parent
b15bef34ad
commit
31febf6a31
1 changed files with 1 additions and 0 deletions
|
@ -454,6 +454,7 @@ class FactEdit(QTextEdit):
|
|||
self.insertPlainText(source.text())
|
||||
elif source.hasHtml():
|
||||
self.insertHtml(self.simplyHTML(unicode(source.html())))
|
||||
self.parent.saveWidget(self)
|
||||
|
||||
def simplifyHTML(self, html):
|
||||
"Remove all style information and P tags."
|
||||
|
|
Loading…
Reference in a new issue