# BlockEditorItemContext (@salmonui/rich-text)

> The BlockEditorItemContext interface of @salmonui/rich-text: What a custom menu entry receives.

Canonical: https://salmonui.dev/docs/reference/rich-text/BlockEditorItemContext

```ts
import type { BlockEditorItemContext } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface BlockEditorItemContext {
    readonly block: Block | null;
    readonly actions: BlockEditorActions;
}
```

What a custom menu entry receives.

Members (2):

| Name | Signature | Flags | 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;` |  |  |
