An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/6373
Vanessac2c7bfdfb74b
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 9c2729a9a0..14113a331a 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -190,6 +190,7 @@ export class WYSIWYG {private bindCommonEvent(protyle: IProtyle) {this.element.addEventListener("copy", (event: ClipboardEvent & { target: HTMLElement }) => {+ window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373// https://github.com/siyuan-note/siyuan/issues/4600if (event.target.tagName === "PROTYLE-HTML") {event.stopPropagation();@@ -197,7 +198,6 @@ export class WYSIWYG {}event.stopPropagation();event.preventDefault();- window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373const range = getEditorRange(protyle.wysiwyg.element);const nodeElement = hasClosestBlock(range.startContainer);if (!nodeElement) {@@ -911,6 +911,7 @@ export class WYSIWYG {});this.element.addEventListener("cut", (event: ClipboardEvent & { target: HTMLElement }) => {+ window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373if (event.target.tagName === "PROTYLE-HTML") {event.stopPropagation();return;@@ -1265,6 +1266,7 @@ export class WYSIWYG {});this.element.addEventListener("paste", (event: ClipboardEvent & { target: HTMLElement }) => {+ window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373// https://github.com/siyuan-note/siyuan/issues/4600if (event.target.tagName === "PROTYLE-HTML") {event.stopPropagation();