Orca Note Plugin API Documentation
    Preparing search index...

    Interface BlockMoveOptions

    Options passed to core.editor.moveBlocks for fine-grained control over the move operation.

    interface BlockMoveOptions {
        autoMatchType?: boolean;
        extraMoves?: [
            number[],
            number,
            "before"
            | "after"
            | "firstChild"
            | "lastChild",
        ][];
    }
    Index

    Properties

    autoMatchType?: boolean

    If true, the moved blocks' type (repr) is automatically adjusted to match the target parent or sibling (e.g., converting a text block to a list item when moving into a list).

    extraMoves?: [number[], number, "before" | "after" | "firstChild" | "lastChild"][]

    Additional move operations that are performed atomically alongside the primary move. Each entry is a tuple of: [blockIds, refBlockId, position].

    • blockIds: The blocks to move.
    • refBlockId: The reference block (or null for root-level).
    • position: Where to place the blocks relative to refBlockId.