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

Vanessaac31f3efbd39
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 6605d777d6..9785e8e23b 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1427,15 +1427,6 @@ export class WYSIWYG {
if (!nodeElement) {
return;
}
- // 块划选时原生文字选区会在 Windows 上跨块扩展(macOS 不会),需实时收回起点块,避免拖动中可见 AB 之间的文字被选中
- if (getSelection().rangeCount > 0) {
- const range = getSelection().getRangeAt(0);
- const startBlockElement = hasClosestBlock(range.startContainer);
- const endBlockElement = hasClosestBlock(range.endContainer);
- if (startBlockElement && endBlockElement && startBlockElement !== endBlockElement) {
- protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
- }
- }
protyle.selectElement.classList.remove("fn__none");
// 向左选择,遇到 gutter 就不会弹出 toolbar
hideElements(["gutter"], protyle);