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
Post a Comment