Hi i am working with codemirror to highlight Hive querries in text area.
I want to do the linewrapping in the text area.
window.editor = CodeMirror.fromTextArea(document.getElementById(‘hiveQueryId’), {
mode: mime,
indentWithTabs: true,
smartIndent: true,
lineNumbers: false,
matchBrackets : true,
autofocus: true,
extraKeys: {“Ctrl-Space”: “autocomplete”},
lineWrapping : true
});
It is working fine in chrome without any problem, but the same is not working in IE9.
I tried in various ways like
- Tried using wrap=‘hard" cols=“100%” attributes of textarea.
2.$(’.CodeMirror’).resizable({
resize: function() {
editor.setSize($(this).width(), $(this).height());
}
});
3.Instead of $(this).width(), $(this).height() used “100%” or “100px” in the setsize method
but I am unable to fix it.
Please help me out to resolve this issue.