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: https://github.com/siyuan-note/siyuan/issues/16729
Vanessa1b4b4cb20949
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex fe7a4bfe19..a2be020237 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -174,7 +174,9 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rangif (sideElement) {if (protyle.block.showAll && sideElement.classList.contains("protyle-wysiwyg") && protyle.wysiwyg.element.childElementCount === 0) {setTimeout(() => {- zoomOut({protyle, id: protyle.block.parent2ID, focusId: protyle.block.parent2ID});+ if (document.contains(protyle.element)) {+ zoomOut({protyle, id: protyle.block.parent2ID, focusId: protyle.block.parent2ID});+ }}, Constants.TIMEOUT_INPUT * 2 + 100);} else {if ((sideElement.classList.contains("protyle-wysiwyg") && protyle.wysiwyg.element.childElementCount === 0)) {@@ -250,6 +252,9 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang/// #endif// https://github.com/siyuan-note/siyuan/issues/16767setTimeout(() => {+ if (!document.contains(protyle.element)) {+ return;+ }if (protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "2" &&!protyle.scroll.element.classList.contains("fn__none") &&protyle.contentElement.scrollHeight - protyle.contentElement.scrollTop < protyle.contentElement.clientHeight * 2