An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lipstick: fix https://github.com/siyuan-note/siyuan/issues/10727
Vanessaffd6459540a5
diff --git a/app/src/constants.ts b/app/src/constants.tsindex 7b8ad9715f..cd46b21374 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -482,14 +482,7 @@ export abstract class Constants {"size": "auto","type": "center","instance": "Layout",- "children": [{- "instance": "Wnd",- "children": [],- // "children": [{- // "instance": "Tab",- // "children": []- // }]- }]+ "children": [{"instance": "Wnd", "children": [{"instance": "Tab", "children": []}]}]}, {"direction": "tb","size": "0px",diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex fd193793ef..b712f0871c 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1056,9 +1056,10 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {let dragoverElement: Element;let disabledPosition: string;editorElement.addEventListener("dragover", (event: DragEvent & { target: HTMLElement }) => {- if (protyle.disabled) {+ if (protyle.disabled || event.dataTransfer.types.includes(Constants.SIYUAN_DROP_EDITOR)) {event.preventDefault();event.stopPropagation();+ event.dataTransfer.dropEffect = "none";return;}const contentRect = protyle.contentElement.getBoundingClientRect();