Skip to content

Commit

Permalink
2.38.8
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed May 6, 2021
2 parents 86f82e6 + 6cd4a75 commit 6985b79
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.38.7",
"version": "2.38.8",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"./src/assets/css/*.css"
],
"version": "2.38.7",
"version": "2.38.8",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7010,12 +7010,12 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
if (MSData) {
cleanData = cleanData.replace(/\n/g, ' ');
plainText = plainText.replace(/\n/g, ' ');
} else if (plainText === cleanData) {
cleanData = plainText.replace(/\n/g, '<br>');
} else {
cleanData = (plainText === cleanData ? plainText : cleanData).replace(/\n/g, '<br>');
}
cleanData = core.cleanHTML(cleanData, core.pasteTagsWhitelistRegExp);
} else {
cleanData = plainText;
cleanData = plainText.replace(/\n/g, '<br>');
}

const maxCharCount = core._charCount(core._charTypeHTML ? cleanData : plainText);
Expand Down

0 comments on commit 6985b79

Please sign in to comment.