Set Value for ace editor without selecting the whole editor -


so can set value of ace editor setvalue after setting value, editor select whole value of editor. how disable this? mean when set value of ace editor hello world, won't highlight hello world

you can use second parameter control cursor position after setvalue

editor.setvalue(str, -1) // moves cursor start editor.setvalue(str, 1) // moves cursor end 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -