Skip to content

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

:pencil2: Fix typo https://github.com/siyuan-note/siyuan/issues/16556#issuecomment-3658237588

Danield391809442e4
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.ts
index 959c4ea145..a8a81b488f 100644
--- a/app/src/protyle/util/selection.ts
+++ b/app/src/protyle/util/selection.ts
@@ -546,7 +546,7 @@ export const focusByWbr = (element: Element, range: Range) => {
} else if (wbrElement.nextSibling) {
if (wbrElement.nextSibling.nodeType === 3) {
if (wbrElement.nextSibling.textContent === Constants.ZWSP) {
- // <wbr>零块空格text
+ // <wbr>零宽空格text
range.setStart(wbrElement.nextSibling, 1);
} else {
// <wbr>text