Skip to content

Commit

Permalink
fix: #345 cleanHTML not working in IE when onPaste
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed May 7, 2020
1 parent afe6dd5 commit 7714073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3989,7 +3989,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _ic

for (let i = 0, len = domTree.length, t; i < len; i++) {
t = domTree[i];
if (t.nodeType === 1 && !util.isTextStyleElement(t) && !util.isBreak(t) && !util._notAllowedTags(t)) {
if (t.nodeType === 1 && (util.isTextStyleElement(t) || (!util.isBreak(t) && !util._notAllowedTags(t)))) {
requireFormat = true;
break;
}
Expand Down

0 comments on commit 7714073

Please sign in to comment.