Intent.command
property · packages/richtext-dom/src/events.ts:22
readonly command?: RichText.CommandThe semantic command to run, when the event maps to one.
Rich text / foldkit-richtext-dom/events
interface · packages/richtext-dom/src/events.ts:20
interface Intent {
readonly command?: RichText.Command
readonly history?: 'undo' | 'redo'
readonly preventDefault: boolean
}Intent.commandproperty · packages/richtext-dom/src/events.ts:22
readonly command?: RichText.CommandThe semantic command to run, when the event maps to one.
Intent.historyproperty · packages/richtext-dom/src/events.ts:24
readonly history?: 'undo' | 'redo'A history intent: undo or redo, which are editor intents, not commands.
Intent.preventDefaultproperty · packages/richtext-dom/src/events.ts:25
readonly preventDefault: boolean