Is it possible / how do you set the insertion point for an ExtJS 4 Textarea?
I want to insert some text (which I have working), then I want to set the insertion point at a specific length from the beginning of the field:
I am getting the current contents, inserting some text in front. Now I want to move the insertion point to right after the "-":
//field = my ExtJS text area
var ins = "some text I inserted - \r";
var value = ins + field.getValue();
field.setValue(value);