mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
add hook to editor button setup
This commit is contained in:
parent
803e3059c7
commit
2cd7240fd2
1 changed files with 1 additions and 0 deletions
|
@ -395,6 +395,7 @@ class Editor(object):
|
||||||
s.connect(s, SIGNAL("activated()"), self.insertLatexMathEnv)
|
s.connect(s, SIGNAL("activated()"), self.insertLatexMathEnv)
|
||||||
s = QShortcut(QKeySequence("Ctrl+Shift+X"), self.widget)
|
s = QShortcut(QKeySequence("Ctrl+Shift+X"), self.widget)
|
||||||
s.connect(s, SIGNAL("activated()"), self.onHtmlEdit)
|
s.connect(s, SIGNAL("activated()"), self.onHtmlEdit)
|
||||||
|
runHook("setupEditorButtons", self)
|
||||||
|
|
||||||
def enableButtons(self, val=True):
|
def enableButtons(self, val=True):
|
||||||
for b in self._buttons.values():
|
for b in self._buttons.values():
|
||||||
|
|
Loading…
Reference in a new issue