mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix editor broken by refactor
This commit is contained in:
parent
eb03b8b727
commit
7b9bab3116
1 changed files with 14 additions and 10 deletions
|
@ -123,19 +123,23 @@ class Editor:
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
tip = _("Change colour (F8)")
|
tip = _("Change colour (F8)")
|
||||||
righttopbtns.append(
|
righttopbtns.extend(
|
||||||
|
[
|
||||||
"""<button tabindex=-1 class=linkb title="{}"
|
"""<button tabindex=-1 class=linkb title="{}"
|
||||||
type="button" onclick="pycmd('changeCol');return false;">
|
type="button" onclick="pycmd('changeCol');return false;">
|
||||||
<div style="display:inline-block; border-radius: 5px;"
|
<div style="display:inline-block; border-radius: 5px;"
|
||||||
class="topbut rainbow"></div></button>""".format(
|
class="topbut rainbow"></div></button>""".format(
|
||||||
tip
|
tip
|
||||||
),
|
),
|
||||||
self._addButton("text_cloze", "cloze", _("Cloze deletion (Ctrl+Shift+C)")),
|
self._addButton(
|
||||||
|
"text_cloze", "cloze", _("Cloze deletion (Ctrl+Shift+C)")
|
||||||
|
),
|
||||||
self._addButton(
|
self._addButton(
|
||||||
"paperclip", "attach", _("Attach pictures/audio/video (F3)")
|
"paperclip", "attach", _("Attach pictures/audio/video (F3)")
|
||||||
),
|
),
|
||||||
self._addButton("media-record", "record", _("Record audio (F5)")),
|
self._addButton("media-record", "record", _("Record audio (F5)")),
|
||||||
self._addButton("more", "more"),
|
self._addButton("more", "more"),
|
||||||
|
]
|
||||||
)
|
)
|
||||||
righttopbtns = runFilter("setupEditorButtons", righttopbtns, self)
|
righttopbtns = runFilter("setupEditorButtons", righttopbtns, self)
|
||||||
topbuts = """
|
topbuts = """
|
||||||
|
|
Loading…
Reference in a new issue