Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14496

Danielc2ac00c70019
diff --git a/app/src/editor/index.ts b/app/src/editor/index.ts
index ba03a77a5b..6324d22870 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 || [],