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

Vanessa3e3b31965335
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 433404f418..7ec4908e88 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1752,7 +1752,7 @@ export class WYSIWYG {
return;
}
const blockElement = hasClosestBlock(event.target);
- if (blockElement && !getContenteditableElement(blockElement)) {
+ if (blockElement && (!getContenteditableElement(blockElement) || hasClosestByClassName(event.target, "av__cursor"))) {
event.stopPropagation();
event.preventDefault();
return;