setRangeText
The setRangeText()
method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
fun setRangeText(replacement: String, start: Int, end: Int, selectionMode: SelectionMode = definedExternally)(source)