Add forgotten line to keep copied text ๐Ÿ˜…

This commit is contained in:
Paris Kasidiaris
2016-09-29 10:59:24 +03:00
parent a224acb50b
commit a6f047331f
+1
View File
@@ -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.
}