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/5104
Vanessa42513e0d6fd0
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 9d47ecfdec..560fe9f6c3 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -560,7 +560,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {return;}if (target.classList && target.classList.contains("protyle-action")) {- window.siyuan.dragElement = target.parentElement;+ if (hasClosestByClassName(target, "protyle-wysiwyg__embed")) {+ window.siyuan.dragElement = undefined;+ event.preventDefault();+ } else {+ window.siyuan.dragElement = target.parentElement;+ }return;}// 选中编辑器中的文字进行拖拽