From 5775c3f92e40313b4f7043a663598b4a2e13e6a8 Mon Sep 17 00:00:00 2001 From: Simone Gaiarin Date: Wed, 4 Jan 2017 16:03:37 +0100 Subject: [PATCH] Add filter on topbuts to allow addons to add buttons --- aqt/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/editor.py b/aqt/editor.py index 320a2ea8b..f3f26971b 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -458,6 +458,7 @@ class Editor(object): """ % dict(flds=_("Fields"), cards=_("Cards")) + topbuts = runFilter("setupEditorButtons", topbuts) self.web.stdHtml(_html % ( self.mw.baseHTML(), anki.js.jquery, topbuts,