RichTextState

constructor(initialText: <Error class: unknown class> = RichString(""), initialSelection: TextRange = TextRange(initialText.text.length))

Parameters

initialText

The initial RichString to display in the editor. Defaults to an empty RichString.

initialSelection

The initial TextRange selection or cursor position. Defaults to the end of initialText.