Merge pull request #2282 from ether/chrome-paste
Chrome browser change wrapping typepull/2296/head^2
commit
a52743d8f1
|
@ -152,7 +152,6 @@ function Ace2Inner(){
|
||||||
var dmesg = noop;
|
var dmesg = noop;
|
||||||
window.dmesg = noop;
|
window.dmesg = noop;
|
||||||
|
|
||||||
|
|
||||||
var scheduler = parent; // hack for opera required
|
var scheduler = parent; // hack for opera required
|
||||||
|
|
||||||
var textFace = 'monospace';
|
var textFace = 'monospace';
|
||||||
|
@ -597,6 +596,13 @@ function Ace2Inner(){
|
||||||
fixView();
|
fixView();
|
||||||
});
|
});
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
|
// Chrome can't handle the truth.. If CSS rule white-space:pre-wrap
|
||||||
|
// is true then any paste event will insert two lines..
|
||||||
|
if(browser.chrome){
|
||||||
|
$("#innerdocbody").css({"white-space":"normal"});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setStyled(newVal)
|
function setStyled(newVal)
|
||||||
|
|
Loading…
Reference in New Issue