feat(editor): allow moving blocks up/down

This commit is contained in:
Elian Doran
2025-05-27 20:36:57 +03:00
parent 541897b1d0
commit 27d1a87fb0
4 changed files with 106 additions and 3 deletions

View File

@@ -30,13 +30,18 @@ declare module "ckeditor5" {
}
interface EditorConfig {
syntaxHighlighting: {
syntaxHighlighting?: {
loadHighlightJs: () => Promise<any>;
mapLanguageName(mimeType: string): string;
defaultMimeType: string;
enabled: boolean;
},
moveBlockUp?: {
keystroke: string;
},
moveBlockDown?: {
keystroke: string;
},
clipboard?: {
copy(text: string): void;
}