EditorSession
An editor session holds the editor state and dispatches transactions.
Create instances via the EditorSession factory function or the rememberEditorSession composable.
Properties
Functions
Get the document coordinates of a position. Returns null when outside the viewport.
Dispatch one or more transaction specs against the current state.
Dispatch a transaction built via DSL.
Dispatch a fully-built transaction.
Get the current value of a view plugin, or null if the plugin is not active.
Get the document position for on-screen coordinates. Returns null when outside the editor.
Remember the current value of a Facet, recomposing only when its value changes.
Remember the current value of a StateField, recomposing only when its value changes.
Select the entire document.
Replace the entire document content with text.
Get the text direction at a specific position.