API reference: @salmonui/rich-text
BlockEditorItemContextinterface
import type { BlockEditorItemContext } from '@salmonui/rich-text';interface BlockEditorItemContext {
readonly block: Block | null;
readonly actions: BlockEditorActions;
}
What a custom menu entry receives.
| Name | Signature | Description |
|---|---|---|
block | readonly block: Block | null; | The block the menu belongs to (the caret's block for the slash menu and toolbar). |
actions | readonly actions: BlockEditorActions; |