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: https://github.com/siyuan-note/siyuan/issues/13822
Vanessa3919dd2515ff
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex ca18cff70a..7d9d07ab6f 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1807,12 +1807,22 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {clearDragoverElement(dragoverElement);return;}- if (gutterTypes[0] === "nodelistitem" &&- gutterTypes[1] !== targetElement.getAttribute("data-subtype") &&- "NodeListItem" === targetElement.getAttribute("data-type")) {- // 排除类型不同的列表项- clearDragoverElement(dragoverElement);- return;+ if (gutterTypes[0] === "nodelistitem" && "NodeListItem" === targetElement.getAttribute("data-type")) {+ if (gutterTypes[1] !== targetElement.getAttribute("data-subtype")) {+ // 排除类型不同的列表项+ clearDragoverElement(dragoverElement);+ return;+ }+ // 选中非列表不能拖拽到列表中 https://github.com/siyuan-note/siyuan/issues/13822+ const notLiItem = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select")).find((item: HTMLElement) => {+ if (!item.classList.contains("li")) {+ return true;+ }+ });+ if (notLiItem) {+ clearDragoverElement(dragoverElement);+ return;+ }}if (gutterTypes[0] !== "nodelistitem" && targetElement.getAttribute("data-type") === "NodeListItem") {// 非列表项不能拖入列表项周围