Code mirror styles are not working in comapatbilty view in IE 10+


Any one suggest to improve the Styles in code mirror while viewing in compatibility view in IE.

Compatibility view is simply not supported by CodeMirror. You’ll have to switch to a standards view if you want to use the library.

We are viewing in IE10. Could you please suggest us to avoid UI issues like cursor alignment.

That looks like the styling changed, or fonts finished loading, after the editor initialized. That means it’s measurements (of the cursor position, among other things) will be out of date, and you should call the .refresh() method after everything loaded and was styled to update them.

Thanks marijn. We tried to call refresh() still we are facing the issue. It is occurring from 2nd line on-wards.

FYI: It is in compatability view.