Skip to content

Commit

Permalink
Add forgotten line to keep copied text πŸ˜…
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk committed Sep 29, 2016
1 parent a224acb commit a6f0473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handlers/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function copyHandler (ev) {
var copiedText = window.getSelection().toString(),
text = prepareTextForClipboard(copiedText);

ev.clipboardData.setData('text/plain', text);
ev.preventDefault(); // Prevent or the original text will be copied.
}

Expand Down

0 comments on commit a6f0473

Please sign in to comment.