mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
refactor(editor): correct type for keystroke
This commit is contained in:
parent
06528ec74b
commit
4ab297d00f
@ -23,8 +23,6 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Keystroke = string | string[];
|
|
||||||
|
|
||||||
declare module "ckeditor5" {
|
declare module "ckeditor5" {
|
||||||
interface Editor {
|
interface Editor {
|
||||||
getSelectedHtml(): string;
|
getSelectedHtml(): string;
|
||||||
@ -39,10 +37,10 @@ declare module "ckeditor5" {
|
|||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
},
|
},
|
||||||
moveBlockUp?: {
|
moveBlockUp?: {
|
||||||
keystroke: Keystroke;
|
keystroke: string[];
|
||||||
},
|
},
|
||||||
moveBlockDown?: {
|
moveBlockDown?: {
|
||||||
keystroke: Keystroke;
|
keystroke: string[];
|
||||||
},
|
},
|
||||||
clipboard?: {
|
clipboard?: {
|
||||||
copy(text: string): void;
|
copy(text: string): void;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user