Add filter on topbuts to allow addons to add buttons

This commit is contained in:
Simone Gaiarin 2017-01-04 16:03:37 +01:00
parent 81b60c6dc4
commit 5775c3f92e

View file

@ -458,6 +458,7 @@ class Editor(object):
<button tabindex=-1 class=linkb type="button" onclick="pycmd('more');return false;"><img class=topbut src="qrc:/icons/more.png"></button>
</div>
""" % dict(flds=_("Fields"), cards=_("Cards"))
topbuts = runFilter("setupEditorButtons", topbuts)
self.web.stdHtml(_html % (
self.mw.baseHTML(), anki.js.jquery,
topbuts,