feat(editor/move_block): support multiple keystrokes

This commit is contained in:
Elian Doran
2025-05-27 20:39:52 +03:00
parent 27d1a87fb0
commit e2a089eb7e
2 changed files with 12 additions and 9 deletions

View File

@@ -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;