From 5a6b764ed41a9e530e5f4a08b834d8334aa5553b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 15 Aug 2025 11:08:53 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15566 --- app/src/protyle/wysiwyg/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 79613df98..589e13120 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -427,6 +427,7 @@ export class WYSIWYG { if (isEndOfBlock(range)) { textPlain = textPlain.replace(/\n$/, ""); } + html = textPlain; } else if (hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH")) { tempElement.innerHTML = tempElement.innerHTML.replace(/
/g, "\n").replace(//g, "\n"); textPlain = tempElement.textContent.endsWith("\n") ? tempElement.textContent.replace(/\n$/, "") : tempElement.textContent;