Skip to content

Commit 53bf7dc

Browse files
committed
This should fix the IE Cursor Issue #171
1 parent 7a7869a commit 53bf7dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

static/js/ace2_inner.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3097,7 +3097,11 @@ function OUTER(gscope)
30973097
// Such a div is what IE 6 creates naturally when you make a blank line
30983098
// in a document of divs. However, when copy-and-pasted the div will
30993099
// contain a space, so we note its emptiness with a property.
3100-
lineElem.innerHTML = "";
3100+
if(browser.version < 9) {
3101+
lineElem.innerHTML = "";
3102+
} else {
3103+
lineElem.innerHTML = "<hr style=\"border:none; color:#fff; height:1px; display:none\"/>";
3104+
}
31013105
// a primitive-valued property survives copy-and-paste
31023106
setAssoc(lineElem, "shouldBeEmpty", true);
31033107
// an object property doesn't

0 commit comments

Comments
 (0)