View as Markdown

API reference: @salmonui/rich-text

BlockEditorBlockLocationinterface

import type { BlockEditorBlockLocation } from '@salmonui/rich-text';
interface BlockEditorBlockLocation {
    readonly parentId: string | null;
    readonly index: number;
}

Where a block is: parent block id (null at the top level) and index among its siblings.

BlockEditorBlockLocation members (2)
NameSignatureDescription
parentIdreadonly parentId: string | null;
indexreadonly index: number;