# BlockEditorSelection (@salmonui/rich-text)

> The BlockEditorSelection interface of @salmonui/rich-text: Caret position: the block and the character offset in its text.

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

```ts
import type { BlockEditorSelection } 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 BlockEditorSelection {
    readonly blockId: string;
    readonly offset: number;
}
```

Caret position: the block and the character offset in its text.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `blockId` | `readonly blockId: string;` |  |  |
| `offset` | `readonly offset: number;` |  |  |
