From aaadba90f9d5e9b12490e3f25c2ca3c4e6ad6e5a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 28 Aug 2024 18:28:29 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12066 --- app/src/protyle/wysiwyg/keydown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index 3830df5da..e542a704a 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -808,6 +808,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { } const position = getSelectionOffset(editElement, protyle.wysiwyg.element, range); if (event.key === "Delete" || matchHotKey("⌃D", event)) { + // 需使用 innerText,否则表格内 br 无法传唤为 /n https://github.com/siyuan-note/siyuan/issues/12066 // 段末反向删除 https://github.com/siyuan-note/insider/issues/274 if (position.end === editElement.innerText.length || // 软换行后删除 https://github.com/siyuan-note/siyuan/issues/11118