# MentionEditorInsertion (@salmonui/dropdowns/mention)

> The MentionEditorInsertion interface of @salmonui/dropdowns/mention: What Mention asks an editor target to insert.

Canonical: https://salmonui.dev/docs/reference/dropdowns/mention/MentionEditorInsertion

```ts
import type { MentionEditorInsertion } from '@salmonui/dropdowns/mention';
```

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

## Reference

Kind: interface

```ts
interface MentionEditorInsertion {
    readonly start: number;
    readonly end: number;
    readonly text: string;
    readonly suffix: string;
    readonly trigger: string;
    readonly value: string | number;
    readonly label: string;
    readonly item: unknown;
}
```

What `Mention` asks an editor target to insert.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: number;` |  | Offset of the trigger in the text block (the text `getTextBeforeCaret()` returns). |
| `end` | `readonly end: number;` |  | Offset of the caret: `[start, end)` is the trigger and the search text to replace. |
| `text` | `readonly text: string;` |  | The text the textarea path would insert: trigger (with `keepChar`), the insert text, then `suffix`. |
| `suffix` | `readonly suffix: string;` |  | The trigger suffix included at the end of `text` (`''` by default). |
| `trigger` | `readonly trigger: string;` |  |  |
| `value` | `readonly value: string \| number;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `item` | `readonly item: unknown;` |  |  |
