EditorStateConfig

data class EditorStateConfig(val doc: DocSpec? = null, val selection: SelectionSpec? = null, val extensions: Extension? = null)

Options passed when creating an editor state.

Constructors

Link copied to clipboard
constructor(doc: DocSpec? = null, selection: SelectionSpec? = null, extensions: Extension? = null)

Properties

Link copied to clipboard
val doc: DocSpec?

The initial document. Defaults to an empty document.

Link copied to clipboard

Extension(s) to associate with this state.

Link copied to clipboard

The starting selection. Defaults to a cursor at position 0.