Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17252

Vanessad053c0f7453d
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 949a02378c..feaf004d57 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -350,7 +350,7 @@ export class Toolbar {
}
let isEndSpan = false;
// https://github.com/siyuan-note/siyuan/issues/7200
- if (this.range.endOffset === this.range.startContainer.textContent.length &&
+ if (this.range.endOffset === this.range.endContainer.textContent.length &&
!["DIV", "TD", "TH", "TR"].includes(this.range.endContainer.parentElement.tagName) &&
!hasNextSibling(this.range.endContainer)) {
this.range.setEndAfter(this.range.endContainer.parentElement);