We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7066f commit 5a6b764Copy full SHA for 5a6b764
app/src/protyle/wysiwyg/index.ts
@@ -427,6 +427,7 @@ export class WYSIWYG {
427
if (isEndOfBlock(range)) {
428
textPlain = textPlain.replace(/\n$/, "");
429
}
430
+ html = textPlain;
431
} else if (hasClosestByTag(range.startContainer, "TD") || hasClosestByTag(range.startContainer, "TH")) {
432
tempElement.innerHTML = tempElement.innerHTML.replace(/<br>/g, "\n").replace(/<br\/>/g, "\n");
433
textPlain = tempElement.textContent.endsWith("\n") ? tempElement.textContent.replace(/\n$/, "") : tempElement.textContent;
0 commit comments