insertChange

fun insertChange(from: Int, toInsert: String, allowMerge: Boolean): InsertString?

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.