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

Vanessaa0eb84e3e853
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index e2bf8143a1..6605d777d6 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1433,7 +1433,7 @@ export class WYSIWYG {
const startBlockElement = hasClosestBlock(range.startContainer);
const endBlockElement = hasClosestBlock(range.endContainer);
if (startBlockElement && endBlockElement && startBlockElement !== endBlockElement) {
- range.collapse(false);
+ protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
}
}
protyle.selectElement.classList.remove("fn__none");