Editor: move caret to a specific position

Use setSelectedRange() on the editor object. You can pass a 0 for the length of the range, which will just position the insertion-point.