Add forgotten line to keep copied text 😅
This commit is contained in:
@@ -39,6 +39,7 @@ function copyHandler (ev) {
|
|||||||
var copiedText = window.getSelection().toString(),
|
var copiedText = window.getSelection().toString(),
|
||||||
text = prepareTextForClipboard(copiedText);
|
text = prepareTextForClipboard(copiedText);
|
||||||
|
|
||||||
|
ev.clipboardData.setData('text/plain', text);
|
||||||
ev.preventDefault(); // Prevent or the original text will be copied.
|
ev.preventDefault(); // Prevent or the original text will be copied.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user