From c2ac00c70019eaebabb63de47a9698c9771ec637 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 7 Apr 2025 20:47:48 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14496 --- app/src/editor/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/editor/index.ts b/app/src/editor/index.ts index ba03a77a5..6324d2287 100644 --- a/app/src/editor/index.ts +++ b/app/src/editor/index.ts @@ -21,7 +21,7 @@ export class Editor extends Model { rootId: string, mode?: TEditorMode, action?: TProtyleAction[], - afterInitProtyle: (editor: Protyle) => void, + afterInitProtyle?: (editor: Protyle) => void, }) { super({ app: options.app, @@ -40,7 +40,7 @@ export class Editor extends Model { action?: TProtyleAction[] rootId: string, mode?: TEditorMode, - afterInitProtyle: (editor: Protyle) => void, + afterInitProtyle?: (editor: Protyle) => void, }) { this.editor = new Protyle(this.app, this.element, { action: options.action || [],