From 6e048c5d3fedffcfcd23b1d8df47ed1e2d524b39 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 11 Mar 2018 15:18:22 -0700 Subject: [PATCH] copy_and_paste: Enable copy-paste handler in production. Now that we've fixed the issues we encountered when first testing this, we can try it out in production again. --- frontend_tests/node_tests/copy_and_paste.js | 4 ---- static/js/copy_and_paste.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend_tests/node_tests/copy_and_paste.js b/frontend_tests/node_tests/copy_and_paste.js index 06a9557572..282b88c442 100644 --- a/frontend_tests/node_tests/copy_and_paste.js +++ b/frontend_tests/node_tests/copy_and_paste.js @@ -1,9 +1,5 @@ global.stub_out_jquery(); -set_global('page_params', { - development: true, -}); - var jsdom = require("jsdom"); global.document = jsdom.jsdom('

Hello world

'); var window = jsdom.jsdom().defaultView; diff --git a/static/js/copy_and_paste.js b/static/js/copy_and_paste.js index 6257a5e72e..69cadb2614 100644 --- a/static/js/copy_and_paste.js +++ b/static/js/copy_and_paste.js @@ -193,7 +193,7 @@ exports.paste_handler = function (event) { var clipboardData = event.originalEvent.clipboardData; var paste_html = clipboardData.getData('text/html'); - if (paste_html && page_params.development_environment) { + if (paste_html) { event.preventDefault(); var text = exports.paste_handler_converter(paste_html); compose_ui.insert_syntax_and_focus(text);