editorState

Create an EditorState using a DSL builder.

val state = editorState {
doc("Hello, world!")
selection(5)
extensions {
+lineNumbers
+history()
}
}