mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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)")
|
||||
righttopbtns.append(
|
||||
"""<button tabindex=-1 class=linkb title="{}"
|
||||
righttopbtns.extend(
|
||||
[
|
||||
"""<button tabindex=-1 class=linkb title="{}"
|
||||
type="button" onclick="pycmd('changeCol');return false;">
|
||||
<div style="display:inline-block; border-radius: 5px;"
|
||||
class="topbut rainbow"></div></button>""".format(
|
||||
tip
|
||||
),
|
||||
self._addButton("text_cloze", "cloze", _("Cloze deletion (Ctrl+Shift+C)")),
|
||||
self._addButton(
|
||||
"paperclip", "attach", _("Attach pictures/audio/video (F3)")
|
||||
),
|
||||
self._addButton("media-record", "record", _("Record audio (F5)")),
|
||||
self._addButton("more", "more"),
|
||||
tip
|
||||
),
|
||||
self._addButton(
|
||||
"text_cloze", "cloze", _("Cloze deletion (Ctrl+Shift+C)")
|
||||
),
|
||||
self._addButton(
|
||||
"paperclip", "attach", _("Attach pictures/audio/video (F3)")
|
||||
),
|
||||
self._addButton("media-record", "record", _("Record audio (F5)")),
|
||||
self._addButton("more", "more"),
|
||||
]
|
||||
)
|
||||
righttopbtns = runFilter("setupEditorButtons", righttopbtns, self)
|
||||
topbuts = """
|
||||
|
|
Loading…
Reference in a new issue