TextEditor.insert

void insert(string text)

Inserts text at the current cursor position.