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:
Rishi Gupta
2017-11-27 16:06:42 -08:00
committed by Tim Abbott
parent 3fcfcd2a55
commit 83149a953a
2 changed files with 5 additions and 1 deletions

View File

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