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/12651
Vanessa384868a81f46
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 7f0bf4f8b7..13661b5a08 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1342,6 +1342,11 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {}if (gutterType) {disabledPosition = "";+ // https://github.com/siyuan-note/siyuan/issues/12651+ if (dragoverElement) {+ dragoverElement.classList.remove("dragover__top", "dragover__bottom", "dragover__left", "dragover__right", "dragover");+ dragoverElement = undefined;+ }// gutter 文档内拖拽限制// 排除自己及子孙const gutterTypes = gutterType.replace(Constants.SIYUAN_DROP_GUTTER, "").split(Constants.ZWSP);@@ -1403,6 +1408,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {editorElement.querySelectorAll(".dragover__left, .dragover__right, .dragover__bottom, .dragover__top, .dragover").forEach((item: HTMLElement) => {item.classList.remove("dragover__top", "dragover__bottom", "dragover__left", "dragover__right", "dragover");});+ dragoverElement = undefined;}});editorElement.addEventListener("dragenter", (event) => {