ace2_inner: remove Chrome specific hack

This code was specific for older Chrome versions. It can be simplified now.

Fixes #3487
This commit is contained in:
John McLear 2020-04-07 02:47:46 +01:00 committed by GitHub
parent 8987c5d813
commit 3872690715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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