mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
copy paste: Turn off toMarkdown in production.
At least until some of the TODOs at the bottom of node_tests/copy_and_paste.js are done.
This commit is contained in:
@@ -156,7 +156,7 @@ exports.paste_handler = function (event) {
|
||||
var clipboardData = event.originalEvent.clipboardData;
|
||||
|
||||
var paste_html = clipboardData.getData('text/html');
|
||||
if (paste_html) {
|
||||
if (paste_html && page_params.development) {
|
||||
event.preventDefault();
|
||||
var text = exports.paste_handler_converter(paste_html);
|
||||
compose_ui.insert_syntax_and_focus(text);
|
||||
|
||||
Reference in New Issue
Block a user