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.
This commit is contained in:
Tim Abbott
2018-03-11 15:18:22 -07:00
parent f876fd1423
commit 6e048c5d3f
2 changed files with 1 additions and 5 deletions

View File

@@ -1,9 +1,5 @@
global.stub_out_jquery();
set_global('page_params', {
development: true,
});
var jsdom = require("jsdom");
global.document = jsdom.jsdom('<!DOCTYPE html><p>Hello world</p>');
var window = jsdom.jsdom().defaultView;

View File

@@ -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);