turndown: Enable turndown in production.

This commit is contained in:
N-Shar-ma 2024-03-28 02:33:26 +05:30 committed by Tim Abbott
parent c29fbeca94
commit 7895b05284
2 changed files with 1 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import TurndownService from "turndown";
import * as compose_ui from "./compose_ui";
import * as message_lists from "./message_lists";
import {page_params} from "./page_params";
import * as rows from "./rows";
function find_boundary_tr($initial_tr, iterate_row) {
@ -605,8 +604,7 @@ export function paste_handler(event) {
if (
!compose_ui.cursor_inside_code_block($textarea) &&
paste_html &&
!compose_ui.shift_pressed &&
page_params.development_environment
!compose_ui.shift_pressed
) {
event.preventDefault();
event.stopPropagation();

View File

@ -4,7 +4,6 @@ const {strict: assert} = require("assert");
const {zrequire} = require("./lib/namespace");
const {run_test} = require("./lib/test");
const {page_params} = require("./lib/zpage_params");
const copy_and_paste = zrequire("copy_and_paste");
@ -23,8 +22,6 @@ run_test("maybe_transform_html", () => {
});
run_test("paste_handler_converter", () => {
page_params.development_environment = true;
/*
Pasting from another Zulip message
*/