Skip to content

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

:art: Improve input method compatibility https://github.com/siyuan-note/siyuan/issues/17546

Daniel0ddcf82eb2f7
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index e7b8f90886..344ac9035c 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2518,7 +2518,10 @@ export class WYSIWYG {
input(protyle, blockElement, range, true, event);
}, Constants.TIMEOUT_INPUT);
} else {
- input(protyle, blockElement, range, true, event);
+ clearTimeout(timeout); // https://github.com/siyuan-note/siyuan/issues/9179
+ timeout = window.setTimeout(() => {
+ input(protyle, blockElement, range, true, event);
+ });
}
}
event.stopPropagation();