mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
feat(editor/move_block): support multiple keystrokes
This commit is contained in:
@@ -23,6 +23,8 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
type Keystroke = string | string[];
|
||||
|
||||
declare module "ckeditor5" {
|
||||
interface Editor {
|
||||
getSelectedHtml(): string;
|
||||
@@ -37,10 +39,10 @@ declare module "ckeditor5" {
|
||||
enabled: boolean;
|
||||
},
|
||||
moveBlockUp?: {
|
||||
keystroke: string;
|
||||
keystroke: Keystroke;
|
||||
},
|
||||
moveBlockDown?: {
|
||||
keystroke: string;
|
||||
keystroke: Keystroke;
|
||||
},
|
||||
clipboard?: {
|
||||
copy(text: string): void;
|
||||
|
||||
Reference in New Issue
Block a user