SlashCommandApplyContext
type SlashCommandApplyContext = { editor: NonNullable<ReturnType<EditorHandle["getEditor"]>>; openSelection: { anchor: { offset: number; path: number[]; }; head: { offset: number; path: number[]; }; };};Defined in: react/src/extensions/slash-command.tsx:33
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
editor | NonNullable<ReturnType<EditorHandle["getEditor"]>> | - | react/src/extensions/slash-command.tsx:34 |
openSelection | { anchor: { offset: number; path: number[]; }; head: { offset: number; path: number[]; }; } | Selection at the moment the menu opened. | react/src/extensions/slash-command.tsx:36 |
openSelection.anchor | { offset: number; path: number[]; } | - | react/src/extensions/slash-command.tsx:36 |
openSelection.anchor.offset | number | - | react/src/extensions/slash-command.tsx:36 |
openSelection.anchor.path | number[] | - | react/src/extensions/slash-command.tsx:36 |
openSelection.head | { offset: number; path: number[]; } | - | react/src/extensions/slash-command.tsx:36 |
openSelection.head.offset | number | - | react/src/extensions/slash-command.tsx:36 |
openSelection.head.path | number[] | - | react/src/extensions/slash-command.tsx:36 |