diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 546584de5..850fb4370 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -731,7 +731,7 @@ class Editor: except Exception as e: showWarning(str(e)) return - self.web.eval("insertHtmlRemovingInitialBR(%s);" % json.dumps(html)) + self.web.eval("setFormat('inserthtml', %s);" % json.dumps(html)) def _addMedia(self, path, canDelete=False): "Add to media folder and return local img or sound tag."