Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/6553

Vanessa86804f1c1daf
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 4bad0d34f3..42e1e609b0 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -912,6 +912,9 @@ export class WYSIWYG {
this.element.addEventListener("cut", (event: ClipboardEvent & { target: HTMLElement }) => {
window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373
+ if (protyle.disabled) {
+ return;
+ }
if (event.target.tagName === "PROTYLE-HTML") {
event.stopPropagation();
return;