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/5396
Vanessa19dba40fc1c5
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 6f5bbb768d..32ae680f13 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -590,7 +590,13 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {}transaction(protyle, doOperations, undoOperations);mathRender(protyle.wysiwyg.element);- focusByWbr(protyle.wysiwyg.element, range);+ if (targetElement.classList.contains("code-block")) {+ highlightRender(protyle.wysiwyg.element);+ } else {+ focusByWbr(protyle.wysiwyg.element, range);+ }+ // 拖拽后无法使用快捷键+ protyle.selectElement.classList.add("fn__none");});return;}