An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessad61ee623f92a
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.tsindex 37a3c03ca6..6692a6510f 100644--- a/app/src/protyle/wysiwyg/list.ts+++ b/app/src/protyle/wysiwyg/list.ts@@ -286,7 +286,7 @@ export const breakList = (protyle: IProtyle, blockElement: Element, range: Range* @param isDelete* @param deleteElement 末尾反向删除时才会传入*/-export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range: Range, isDelete = false, deleteElement:Element) => {+export const listOutdent = (protyle: IProtyle, liItemElements: Element[], range: Range, isDelete = false, deleteElement?: Element) => {const liElement = liItemElements[0].parentElement;const liId = liElement.getAttribute("data-node-id");if (!liId) {diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 770a059147..a71595a6b7 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -515,12 +515,12 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ranexport const moveToPrevious = (blockElement: Element, range: Range, isDelete: boolean) => {if (isDelete) {- const previousBlockElement = getPreviousBlock(blockElement)+ const previousBlockElement = getPreviousBlock(blockElement);if (previousBlockElement) {- const previousEditElement = getContenteditableElement(getLastBlock(previousBlockElement))+ const previousEditElement = getContenteditableElement(getLastBlock(previousBlockElement));if (previousEditElement) {setLastNodeRange(previousEditElement, range, false);}}}-}+};