An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/6533
Vanessa9aadfe304123
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex c1fe00015f..4bad0d34f3 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1965,8 +1965,8 @@ export class WYSIWYG {item.removeAttribute("select-start");item.removeAttribute("select-end");});- const ctrlParentElement = hasClosestByClassName(ctrlElement, "protyle-wysiwyg--select");- if (ctrlParentElement && !ctrlElement.isSameNode(ctrlParentElement)) {+ const ctrlParentElement = hasClosestByClassName(ctrlElement.parentElement, "protyle-wysiwyg--select");+ if (ctrlParentElement) {ctrlParentElement.classList.remove("protyle-wysiwyg--select");ctrlParentElement.removeAttribute("select-start");ctrlParentElement.removeAttribute("select-end");