From 538ea31387543e332d04d0f6ee114dad1acf1f5c Mon Sep 17 00:00:00 2001 From: Aristotelis <5459332+glutanimate@users.noreply.github.com> Date: Mon, 21 Aug 2023 07:00:05 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20typo:=20notetypeId=20=E2=86=92=20noteId?= =?UTF-8?q?=20(#2615)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IOEditingMode interface expects noteId --- 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 e55ab95a8..c0bc39168 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1203,7 +1203,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too options = {"html": html, "mode": mode} self.web.eval(f"setupMaskEditor({json.dumps(options)})") else: - mode = {"kind": "edit", "notetypeId": self.note.id} + mode = {"kind": "edit", "noteId": self.note.id} options = {"html": html, "mode": mode} self.web.eval(f"resetIOImage({json.dumps(file)})") self.web.eval(f"setImageField({json.dumps(html)})")