use text-indent: -1em; to hide cursor on ie
as suggested in https://github.com/ajaxorg/ace/issues/1640
This commit is contained in:
parent
b52a989bf8
commit
1d4d76b1ea
2 changed files with 3 additions and 1 deletions
|
|
@ -143,6 +143,7 @@
|
|||
font: inherit;
|
||||
padding: 0 1px;
|
||||
margin: 0 -1px;
|
||||
text-indent: -1em;
|
||||
}
|
||||
|
||||
.ace_text-input.ace_composition {
|
||||
|
|
@ -150,6 +151,7 @@
|
|||
color: #111;
|
||||
z-index: 1000;
|
||||
opacity: 1;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.ace_layer {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
// dom.importCssString(editorCss, "ace_editor", container.ownerDocument);
|
||||
|
||||
// in IE <= 9 the native cursor always shines through
|
||||
this.$keepTextAreaAtCursor = !useragent.isIE;
|
||||
this.$keepTextAreaAtCursor = true;
|
||||
|
||||
dom.addCssClass(this.container, "ace_editor");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue