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

Vanessaa5fcd574159b
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 67ef9688aa..e916dc8211 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -636,7 +636,7 @@ export class WYSIWYG {
showMessage(window.siyuan.languages.crossKeepLazyLoad);
}
selectElements.forEach(item => {
- if (!hasClosestByClassName(currentElement, "protyle-wysiwyg--select")) {
+ if (!hasClosestByClassName(item, "protyle-wysiwyg--select")) {
item.classList.add("protyle-wysiwyg--select");
ids.push(item.getAttribute("data-node-id"));
// 清除选中的子块 https://ld246.com/article/1667826582251