insert

fun insert(text: String)(source)

replaces the selection with text, the caret after it; recorded in the history of the control manager