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/15184

Vanessabec233f58b17
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 37e86fc807..27c1c7b8c4 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -445,6 +445,8 @@ export class WYSIWYG {
// 右键
return;
}
+ const documentSelf = document;
+ documentSelf.onmouseup = null;
let target = event.target as HTMLElement;
let nodeElement = hasClosestBlock(target) as HTMLElement;
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
@@ -582,7 +584,6 @@ export class WYSIWYG {
event.preventDefault();
return;
}
-
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
let ctrlElement = nodeElement;
if (!hasSelectClassElement && galleryItemElement) {
@@ -619,7 +620,7 @@ export class WYSIWYG {
}
return;
}
- const documentSelf = document;
+
// https://github.com/siyuan-note/siyuan/issues/15100
if (galleryItemElement) {
documentSelf.onmouseup = () => {