From d48fb1d7769cb70e1b81fd19624fb8791128b084 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 31 Mar 2018 07:09:50 -0400 Subject: [PATCH] pills: Use insertText for copy/paste. --- static/js/input_pill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/input_pill.js b/static/js/input_pill.js index 003f92a929..2a0ba82e93 100644 --- a/static/js/input_pill.js +++ b/static/js/input_pill.js @@ -309,7 +309,7 @@ exports.create = function (opts) { var text = (e.originalEvent || e).clipboardData.getData('text/plain'); // insert text manually - document.execCommand("insertHTML", false, text); + document.execCommand("insertText", false, text); funcs.insertManyPills(store.$input.text().trim()); });