View as Markdown

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.

BlockEditorSelection members (2)
NameSignatureDescription
blockIdreadonly blockId: string;
offsetreadonly offset: number;