Trevixal API
    Preparing search index...

    Interface EditorSnapshot

    Toolbar-facing snapshot of the current state.

    interface EditorSnapshot {
        activeMarks: readonly string[];
        align: string | null;
        blockAttrs: Readonly<Record<string, unknown>> | null;
        blockType: string | null;
        canRedo: boolean;
        canUndo: boolean;
        indent: number;
        listType: string | null;
        markAttrs: Readonly<Record<string, Attrs>>;
        selectionEmpty: boolean;
    }
    Index
    activeMarks: readonly string[]
    align: string | null

    Text alignment of the block holding the selection head.

    blockAttrs: Readonly<Record<string, unknown>> | null
    blockType: string | null
    canRedo: boolean
    canUndo: boolean
    indent: number

    Indent level of the block holding the selection head.

    listType: string | null

    Type name of the list wrapping the selection, when inside one.

    markAttrs: Readonly<Record<string, Attrs>>

    Attributes of each active mark, keyed by mark name (font size, color…).

    selectionEmpty: boolean