replace

open fun replace(from: DocPos, to: DocPos, text: Text): Text

Replace a range of the text with the given content.