fix older IEs

This commit is contained in:
John McLear 2015-04-12 13:00:01 +01:00
parent 5435063a2f
commit 6a027d88a9
1 changed files with 5 additions and 1 deletions

View File

@ -1923,7 +1923,11 @@ function Ace2Inner(){
if (charsLeft === 0)
{
var index = 0;
browser.msie = false; // Temp fix to resolve enter and backspace issues..
if (browser.msie && parseInt(browser.version) >= 11) {
browser.msie = false; // Temp fix to resolve enter and backspace issues..
// Note that this makes MSIE behave like modern browsers..
}
if (browser.msie && line == (rep.lines.length() - 1) && lineNode.childNodes.length === 0)
{
// best to stay at end of last empty div in IE