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/6199
Vanessa8832304eeba9
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex ceb6425385..4096881c32 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -6,8 +6,6 @@ import {cancelSB, genEmptyElement, genSBElement} from "../../block/util";import {transaction} from "../wysiwyg/transaction";import {getTopAloneElement} from "../wysiwyg/getBlock";import {updateListOrder} from "../wysiwyg/list";-import {hideElements} from "../ui/hideElements";-import {mathRender} from "../markdown/mathRender";import {fetchPost, fetchSyncPost} from "../../util/fetch";import {onGet} from "./onGet";/// #if !MOBILE@@ -17,7 +15,6 @@ import {updatePanelByEditor} from "../../editor/util";/// #endifimport {Editor} from "../../editor";import {blockRender} from "../markdown/blockRender";-import {highlightRender} from "../markdown/highlightRender";import {uploadLocalFiles} from "../upload";import {insertHTML} from "./insertHTML";import {isBrowser} from "../../util/functions";@@ -49,6 +46,7 @@ const dragSb = (protyle: IProtyle, sourceElements: Element[], targetElement: Eleaction: "insert",data: sbElement.outerHTML,id: sbElement.getAttribute("data-node-id"),+ nextID: sbElement.nextElementSibling?.getAttribute("data-node-id"),previousID: sbElement.previousElementSibling?.getAttribute("data-node-id"),parentID: sbElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID}];@@ -73,8 +71,7 @@ const dragSb = (protyle: IProtyle, sourceElements: Element[], targetElement: Eleaction: "insert",data: newSourceElement.outerHTML,id: newSourceElement.getAttribute("data-node-id"),- previousID: newSourceElement.previousElementSibling?.getAttribute("data-node-id"),- parentID: newSourceElement.parentElement?.getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID+ nextID: targetElement.getAttribute("data-node-id"),});}sourceElements.reverse().forEach((item, index) => {@@ -342,8 +339,7 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: Eaction: "insert",data: newSourceElement.outerHTML,id: newSourceElement.getAttribute("data-node-id"),- previousID: newSourceElement.previousElementSibling?.getAttribute("data-node-id"),- parentID: newSourceElement.parentElement?.getAttribute("data-node-id") || protyle.block.parentID || protyle.block.rootID+ nextID: targetElement.getAttribute("data-node-id"),});sourceElements.reverse().forEach((item, index) => {if (index === sourceElements.length - 1) {diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex e4accbf4be..3373bc98c3 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -172,6 +172,7 @@ interface IOperation {parentID?: stringpreviousID?: stringretData?: any+ nextID?: string // insert 专享}interface IObject {