Ace editor by default selects an entire line..
For eg: When the page loads up the first line is selected by default.
Also when I click anywhere in the screen that entire line gets selected..
How can I disable this feature..
Thanks in advance
Are you sure it's selection and not active line highlight? try doing
editor.setOption("highlightActiveLine", false)
With the latest version of ace you should use the following method.
editor.setHighlightActiveLine(false);
http://ace.c9.io/api/editor.html#Editor.setHighlightActiveLine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With