From a6f047331f3f19eda81f7ac949c248d296c22fa4 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Thu, 29 Sep 2016 10:59:24 +0300 Subject: [PATCH] =?UTF-8?q?Add=20forgotten=20line=20to=20keep=20copied=20t?= =?UTF-8?q?ext=20=F0=9F=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers/Clipboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/Clipboard.js b/src/handlers/Clipboard.js index 73dcf38a1c..bfd3340911 100644 --- a/src/handlers/Clipboard.js +++ b/src/handlers/Clipboard.js @@ -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. }