mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user