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/15989 23

Vanessab1e2e169c33f
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 1645230626..a4fc656222 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -1023,7 +1023,7 @@ export const turnsIntoTransaction = (options: {
range?: Range
}) => {
// https://github.com/siyuan-note/siyuan/issues/14505
- options.protyle.observerLoad.disconnect();
+ options.protyle.observerLoad?.disconnect();
let selectsElement: Element[] = options.selectsElement;
let range: Range;
// 通过快捷键触发