Open scarqin opened 1 month ago
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch @toast-ui/editor@3.2.2 for the project I'm working on.
@toast-ui/editor@3.2.2
Here is the diff that solved my problem:
diff --git a/node_modules/@toast-ui/editor/dist/esm/index.js b/node_modules/@toast-ui/editor/dist/esm/index.js index d966ba8..02e8bd2 100644 --- a/node_modules/@toast-ui/editor/dist/esm/index.js +++ b/node_modules/@toast-ui/editor/dist/esm/index.js @@ -20056,7 +20056,7 @@ var CommandManager = /** @class */ (function () { return CommandManager; }()); -function getTextWithoutTrailingNewline(text) { +function getTextWithoutTrailingNewline(text='') { return text[text.length - 1] === '\n' ? text.slice(0, text.length - 1) : text; } function isCustomHTMLInlineNode(_a, node) {
This issue body was partially generated by patch-package.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
@toast-ui/editor@3.2.2
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.