Skip to content

Commit 5a6b764

Browse files
committed
🎨 #15566
1 parent eb7066f commit 5a6b764

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/protyle/wysiwyg/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ export class WYSIWYG {
427427
if (isEndOfBlock(range)) {
428428
textPlain = textPlain.replace(/\n$/, "");
429429
}
430+
html = textPlain;
430431
} else if (hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH")) {
431432
tempElement.innerHTML = tempElement.innerHTML.replace(/<br>/g, "\n").replace(/<br\/>/g, "\n");
432433
textPlain = tempElement.textContent.endsWith("\n") ? tempElement.textContent.replace(/\n$/, "") : tempElement.textContent;

0 commit comments

Comments
 (0)