Skip to content

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

:memo: https://github.com/siyuan-note/siyuan/issues/17116

Vanessa3ca598aa3ef1
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index bd1332d052..a42fa0cf45 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -735,7 +735,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
const nextElement = getNextBlock(nodeElement);
// 末尾块/单元格统一移动到末尾 https://github.com/siyuan-note/siyuan/issues/17116
if (tdElement && tdStatus === "last" && nodeType === "NodeTable" && !nextElement &&
- // 需使用 innerText 否则表格内 br 无法传唤为 /n
+ // 需使用 innerText 否则表格内 br 无法转换为 /n
nodeEditableElement?.innerText.trimRight().substr(position.start).indexOf("\n") === -1) {
setLastNodeRange(nodeEditableElement, range, false);
range.collapse(false);
@@ -890,7 +890,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
}
- // 需使用 innerText,否则 br 无法传唤为 /n https://github.com/siyuan-note/siyuan/issues/12066
+ // 需使用 innerText,否则 br 无法转换为 /n https://github.com/siyuan-note/siyuan/issues/12066
// 段末反向删除 https://github.com/siyuan-note/insider/issues/274
if (isEndOfBlock(range) || editElement.textContent.substring(position.start) === "\n") {
const cloneRange = range.cloneRange();