From eea6bf963beb7e574e5e0cc0e19dadb6d05b46a3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 30 Dec 2020 19:30:23 +1000 Subject: [PATCH] fix media attachment insertHtmlRemovingInitialBR() was removed in a previous PR --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."