Kodemirror
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kodemirror
state
/
com.monkopedia.kodemirror.state
/
EditorState
/
replaceSelection
replace
Selection
fun
replaceSelection
(
text
:
String
)
:
TransactionSpec
Create a
transaction spec
that replaces every selection range with the given content.
fun
replaceSelection
(
text
:
Text
)
:
TransactionSpec