From 136c4ceb6215f00a502ec83248a653b7cd72c3fb Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Mon, 3 Feb 2025 20:23:12 +0200 Subject: [PATCH] refactor: move all ViewPlugin to editorExtendedSyntax --- src/editor-mode/extensions/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/editor-mode/extensions/index.ts diff --git a/src/editor-mode/extensions/index.ts b/src/editor-mode/extensions/index.ts new file mode 100644 index 0000000..48f10ed --- /dev/null +++ b/src/editor-mode/extensions/index.ts @@ -0,0 +1,6 @@ +import { ViewPlugin } from "@codemirror/view"; +import { ExtendedSyntax } from "src/editor-mode/decorator/builder"; + +export const editorExtendedSyntax = ViewPlugin.fromClass(ExtendedSyntax, { + decorations: value => value.combinedSet, +}); \ No newline at end of file