mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
client,server: Implement shortcut for toggle classic editor toolbar
This commit is contained in:
parent
f88d3220b5
commit
8c69d47aed
@ -34,7 +34,11 @@ const TPL = `\
|
|||||||
*/
|
*/
|
||||||
export default class ClassicEditorToolbar extends NoteContextAwareWidget {
|
export default class ClassicEditorToolbar extends NoteContextAwareWidget {
|
||||||
get name() {
|
get name() {
|
||||||
return "classicToolbar";
|
return "classicEditor";
|
||||||
|
}
|
||||||
|
|
||||||
|
get toggleCommand() {
|
||||||
|
return "toggleRibbonTabClassicEditor";
|
||||||
}
|
}
|
||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
|
@ -420,6 +420,12 @@ function getDefaultKeyboardActions() {
|
|||||||
separator: t("keyboard_actions.ribbon-tabs")
|
separator: t("keyboard_actions.ribbon-tabs")
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
actionName: "toggleRibbonTabClassicEditor",
|
||||||
|
defaultShortcuts: [],
|
||||||
|
description: t("keyboard_actions.toggle-classic-editor-toolbar"),
|
||||||
|
scope: "window"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
actionName: "toggleRibbonTabBasicProperties",
|
actionName: "toggleRibbonTabBasicProperties",
|
||||||
defaultShortcuts: [],
|
defaultShortcuts: [],
|
||||||
|
@ -89,7 +89,8 @@
|
|||||||
"copy-without-formatting": "Copy selected text without formatting",
|
"copy-without-formatting": "Copy selected text without formatting",
|
||||||
"force-save-revision": "Force creating / saving new note revision of the active note",
|
"force-save-revision": "Force creating / saving new note revision of the active note",
|
||||||
"show-help": "Shows built-in Help / cheatsheet",
|
"show-help": "Shows built-in Help / cheatsheet",
|
||||||
"toggle-book-properties": "Toggle Book Properties"
|
"toggle-book-properties": "Toggle Book Properties",
|
||||||
|
"toggle-classic-editor-toolbar": "Toggle the Formatting tab for the classic editor"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"title": "Login",
|
"title": "Login",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user