An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/7299
Vanessa998a7444a2f4
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 6f69a9b790..17c80dd47a 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -12,7 +12,8 @@ import {focusByWbr,focusSideBlock,getEditorRange,- getSelectionOffset, setLastNodeRange,+ getSelectionOffset,+ setLastNodeRange,} from "../util/selection";import {Constants} from "../../constants";import {getSearch, isMobile} from "../../util/functions";@@ -25,10 +26,12 @@ import {dropEvent} from "../util/editorCommonEvent";import {input} from "./input";import {getContenteditableElement,- getLastBlock, getNextBlock,+ getLastBlock,+ getNextBlock,getPreviousHeading,getTopAloneElement,- hasNextSibling, hasPreviousSibling,+ hasNextSibling,+ hasPreviousSibling,isNotEditBlock} from "./getBlock";import {transaction, updateTransaction} from "./transaction";@@ -568,6 +571,9 @@ export class WYSIWYG {}newHeight = y - newTop;}+ if (newHeight < 4) {+ return;+ }protyle.selectElement.setAttribute("style", `background-color: ${protyle.selectElement.style.backgroundColor};top:${newTop}px;height:${newHeight}px;left:${newLeft + 2}px;width:${newWidth - 2}px;`);const newMouseElement = document.elementFromPoint(moveEvent.clientX, moveEvent.clientY);if (mouseElement && mouseElement.isSameNode(newMouseElement) && !mouseElement.classList.contains("protyle-wysiwyg") &&