From c8ab1273bf548f95e87f26457787a6f4a03d616b Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Thu, 6 Feb 2025 21:27:46 +0200 Subject: [PATCH] feat: extend plugin with facet storing "this.app" --- src/editor-mode/facets/appFacet.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/editor-mode/facets/appFacet.ts diff --git a/src/editor-mode/facets/appFacet.ts b/src/editor-mode/facets/appFacet.ts new file mode 100644 index 0000000..c812179 --- /dev/null +++ b/src/editor-mode/facets/appFacet.ts @@ -0,0 +1,9 @@ +import { Facet } from "@codemirror/state"; +import { App } from "obsidian"; + +export const appFacet = Facet.define({ + combine(value) { + return value[0]; + }, + static: true +}); \ No newline at end of file