mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix typo: notetypeId → noteId (#2615)
IOEditingMode interface expects noteId
This commit is contained in:
parent
bc295b41c1
commit
538ea31387
1 changed files with 1 additions and 1 deletions
|
@ -1203,7 +1203,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
||||||
options = {"html": html, "mode": mode}
|
options = {"html": html, "mode": mode}
|
||||||
self.web.eval(f"setupMaskEditor({json.dumps(options)})")
|
self.web.eval(f"setupMaskEditor({json.dumps(options)})")
|
||||||
else:
|
else:
|
||||||
mode = {"kind": "edit", "notetypeId": self.note.id}
|
mode = {"kind": "edit", "noteId": self.note.id}
|
||||||
options = {"html": html, "mode": mode}
|
options = {"html": html, "mode": mode}
|
||||||
self.web.eval(f"resetIOImage({json.dumps(file)})")
|
self.web.eval(f"resetIOImage({json.dumps(file)})")
|
||||||
self.web.eval(f"setImageField({json.dumps(html)})")
|
self.web.eval(f"setImageField({json.dumps(html)})")
|
||||||
|
|
Loading…
Reference in a new issue