EditorStateData

@Serializable
data class EditorStateData(val doc: String, val selection: EditorSelectionData, val fields: Map<String, JsonElement> = emptyMap())

Serializable representation of an EditorState.

Contains the document text, selection, and any serializable custom fields.

Constructors

Link copied to clipboard
constructor(doc: String, selection: EditorSelectionData, fields: Map<String, JsonElement> = emptyMap())

Properties

Link copied to clipboard
val doc: String
Link copied to clipboard
val fields: Map<String, JsonElement>
Link copied to clipboard