API reference: @salmonui/rich-text
BlockEditorSelectioninterface
import type { BlockEditorSelection } from '@salmonui/rich-text';interface BlockEditorSelection {
readonly blockId: string;
readonly offset: number;
}
Caret position: the block and the character offset in its text.
| Name | Signature | Description |
|---|---|---|
blockId | readonly blockId: string; | |
offset | readonly offset: number; |