Rich text / foldkit-richtext-dom/editor-bundle
OutMessage
type · packages/richtext-dom/src/editor-bundle.ts:102
type OutMessage =
| {
readonly _tag: 'Edited'
readonly state: RichText.EditorState
readonly changeSet: RichText.ChangeSet
readonly transactions: ReadonlyArray<RichText.Transaction>
}
| {
readonly _tag: 'Replaced'
readonly state: RichText.EditorState
readonly changeSet: RichText.ChangeSet
}
| {
readonly _tag: 'Rejected'
readonly error: string
}The committed edit, or the diagnostic that refused it.
In the guides
- Text and number fieldsMixins / foldkit-mixins-ui
- Checklist for reusable widgets and primitivesMixins / Authoring components
- ControlsForm / foldkit-form
- Limits and guards from a metakit declarationForm / foldkit-form
- Embed the editor as a form controlRich text / foldkit-richtext-dom