From 3872690715a4c3355f169295c11eebaf97f7efd6 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 7 Apr 2020 02:47:46 +0100 Subject: [PATCH] ace2_inner: remove Chrome specific hack This code was specific for older Chrome versions. It can be simplified now. Fixes #3487 --- src/static/js/ace2_inner.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 64e49ce15..dd8e41f47 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -625,15 +625,6 @@ function Ace2Inner(){ }); }, 0); - // Chrome can't handle the truth.. If CSS rule white-space:pre-wrap - // is true then any paste event will insert two lines.. - // Sadly this will mean you get a walking Caret in Chrome when clicking on a URL - // So this has to be set to pre-wrap ;( - // We need to file a bug w/ the Chromium team. - if(browser.chrome){ - $("#innerdocbody").addClass("noprewrap"); - } - } function setStyled(newVal)