diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 8bcaba8df..5f33c78c6 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -304,25 +304,32 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too image_element = f'' else: image_element = "" + if label or not image_element: label_element = label or cmd else: label_element = "" + if id: idstr = f"id={id}" else: idstr = "" + if toggleable: toggleScript = "toggleEditorButton(this);" else: toggleScript = "" + tip = shortcut(tip) + if rightside: class_ = "linkb" else: class_ = "rounded" + if not disables: class_ += " perm" + return f"""