So you can set value of an ace editor with setValue but after setting the value, the editor will select the whole value of the editor. How do you disable this? This
setValue
You can use the second parameter to control cursor position after setValue
editor.setValue(str, -1) // moves cursor to the start editor.setValue(str, 1) // moves cursor to the end