diff --git a/aqt/editor.py b/aqt/editor.py index 07c0c8f69..4b140afc4 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1108,7 +1108,7 @@ class EditorWebView(AnkiWebView): if html: new.setHtml(html) else: - new.setText(mime.text()) + new.setText(txt) return new def _processHtml(self, mime):