Skip to content

Commit

Permalink
Chrome includes <span> </span> in paste html
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Nov 17, 2018
1 parent 883c215 commit 2f8fec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function matchText(node, delta) {
if (node.parentNode.tagName === 'O:P') {
return delta.insert(text.trim());
}
if (text.trim().length === 0) {
if (text.trim().length === 0 && text.includes('\n')) {
return delta;
}
if (!isPre(node)) {
Expand Down

0 comments on commit 2f8fec8

Please sign in to comment.