chore(ckeditor5): integrate keyboard-marker

This commit is contained in:
Elian Doran
2025-05-04 14:47:59 +03:00
parent 11c437e67c
commit 2a966e7fd8
6 changed files with 20 additions and 1860 deletions

View File

@@ -19,7 +19,8 @@
"name": "ckeditor5"
},
"dependencies": {
"ckeditor5": "43.2.0"
"ckeditor5": "43.2.0",
"@triliumnext/ckeditor5-keyboard-marker": "workspace:*"
},
"devDependencies": {
"@types/jquery": "3.5.32"

View File

@@ -13,6 +13,7 @@ import MarkdownImportPlugin from "./plugins/markdownimport.js";
import MentionCustomization from "./plugins/mention_customization.js";
import IncludeNote from "./plugins/includenote.js";
import Uploadfileplugin from "./plugins/file_upload/uploadfileplugin.js";
import { Kbd } from "@triliumnext/ckeditor5-keyboard-marker";
const TRILIUM_PLUGINS: typeof Plugin[] = [
CutToNotePlugin,
@@ -30,8 +31,13 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
Uploadfileplugin
];
const EXTERNAL_PLUGINS: typeof Plugin[] = [
Kbd
];
export const COMMON_PLUGINS: typeof Plugin[] = [
...TRILIUM_PLUGINS,
...EXTERNAL_PLUGINS,
// essentials package expanded to allow selectively disable Enter and ShiftEnter
Clipboard, Enter, SelectAll, ShiftEnter, Typing, Undo,
@@ -94,7 +100,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
// AutoformatMath,
// Footnotes,
// Mermaid,
// Kbd,
// Admonition
];

View File

@@ -18,5 +18,9 @@
"include": [
"src/**/*.ts"
],
"references": []
"references": [
{
"path": "../ckeditor5-keyboard-marker"
}
]
}