replace

abstract fun replace(location: JsAny, value: String)(source)

Replace a certain text region with a new value. You can use \r\n or \n in value and they will be normalized to the current document.

Parameters

location

The range this operation should remove.

value

The new text this operation should insert after removing location.

Online Documentation