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/15968
Vanessa807c293c9dd3
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex b3620ae605..939c25d03c 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -306,14 +306,15 @@ export class Toolbar {if ((this.range.startOffset !== 0 ||// https://github.com/siyuan-note/siyuan/issues/14869- (this.range.startOffset === 0 && this.range.startContainer.previousSibling?.nodeType === 3 &&+ (this.range.startOffset === 0 &&+ (this.range.startContainer.previousSibling?.nodeType === 3 || (this.range.startContainer.previousSibling as HTMLElement)?.tagName === "BR") &&this.range.startContainer.previousSibling.parentElement === this.range.startContainer.parentElement)) && (this.range.endOffset !== this.range.endContainer.textContent.length ||// https://github.com/siyuan-note/siyuan/issues/14869#issuecomment-2911553387(this.range.endOffset === this.range.endContainer.textContent.length &&- this.range.endContainer.nextSibling?.nodeType === 3 &&+ (this.range.endContainer.nextSibling?.nodeType === 3 || (this.range.endContainer.nextSibling as HTMLElement)?.tagName === "BR") &&this.range.endContainer.nextSibling.parentElement === this.range.endContainer.parentElement)) &&