EditorState
The editor state class is a persistent (immutable) data structure. To update a state, you create a Transaction, which produces a new state instance.
Properties
Functions
Create a set of changes and a new selection by running the given function for each range in the active selection.
Create a ChangeSet from the given change description.
Return a function that can categorize strings into one of: Word, Space, or Other.
Retrieve the value of a state field. Throws an error when the state doesn't have that field, unless you pass false as second parameter.
Retrieve the value of a state field, or null if the field is not present.
Retrieve the value of a state field using index syntax.
Find the values for a given language data field using a type-safe key.
Find the values for a given language data field by string name.
Create a transaction spec that replaces every selection range with the given content.
Serialize this state to an EditorStateData.
Create a Transaction that updates this state.
Find the word at the given position.