mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	client,server: Implement shortcut for toggle classic editor toolbar
This commit is contained in:
		@@ -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",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user