mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -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())
|
self.insertPlainText(source.text())
|
||||||
elif source.hasHtml():
|
elif source.hasHtml():
|
||||||
self.insertHtml(self.simplyHTML(unicode(source.html())))
|
self.insertHtml(self.simplyHTML(unicode(source.html())))
|
||||||
|
self.parent.saveWidget(self)
|
||||||
|
|
||||||
def simplifyHTML(self, html):
|
def simplifyHTML(self, html):
|
||||||
"Remove all style information and P tags."
|
"Remove all style information and P tags."
|
||||||
|
|
Loading…
Reference in a new issue