insertChange

fun insertChange(from: TextPosition, toInsert: List<String>, allowMerge: Boolean): InsertText?
fun insertChange(from: TextPosition, toInsert: String, allowMerge: Boolean): InsertText?

Returns a TextChange object, but does not apply that change. Useful for batching multiple changes together so that undo/redo treats them as a single step.