@twip/web
    Preparing search index...

    Interface MountOptions

    Options for Editor.mount.

    interface MountOptions {
        applicationFieldTypes?: string[];
        author?: Author;
        background?: `#${string}`;
        caretBlink?: number;
        caretBlinkStopAfter?: number;
        dictionaries?: Dictionary[];
        document?: Uint8Array<ArrayBufferLike>;
        drawLeaders?: boolean;
        execution?: "auto" | "main" | "worker";
        fieldLabels?: Record<string, string>;
        fonts?: FontLibrary;
        label?: string;
        language?: string;
        mac?: boolean;
        markupPaneWidth?: number;
        mode?: "editing" | "design";
        overlayColors?: Partial<OverlayColors>;
        paintBudget?: { recordings?: number };
        readOnly?: boolean;
        rulers?: boolean | { horizontal?: boolean; vertical?: boolean };
        rulerUnit?: RulerUnit;
        signal?: AbortSignal;
        subTemplateRules?: ReferenceRule[];
        trackChanges?: boolean;
        zoom?: number | "pageWidth" | "wholePage";
    }

    Hierarchy (View Summary)

    Index
    applicationFieldTypes?: string[]

    The application's own field types (Commands.setApplicationFieldTypes), in place from each open.

    author?: Author

    Who makes changes.

    background?: `#${string}`

    The background around the pages. Default: the theme's desk colour.

    caretBlink?: number

    The caret's blink: ms per phase, 0 for a steady caret. Default 530, or steady while the platform asks for reduced motion (prefers-reduced-motion), which the editor then follows.

    caretBlinkStopAfter?: number

    Stop blinking after this many ms without input, the caret left visible. Default: never.

    dictionaries?: Dictionary[]

    Spelling dictionaries.

    document?: Uint8Array<ArrayBufferLike>

    The document to open; blank when absent.

    drawLeaders?: boolean

    The editor draws each attached balloon's leader line (from balloonsLaidOut's placements) in the overlay colours' leaders colour, so the application draws only the cards. Default false: the application draws them.

    execution?: "auto" | "main" | "worker"

    Where the engine runs. Default 'auto': a worker where supported.

    fieldLabels?: Record<string, string>

    What design mode shows for each field code (Commands.setFieldLabels), in place from each open's first layout. The commands still change them for the open document.

    fonts?: FontLibrary

    The fonts to draw with: share one per page, FontLibrary.default (the default).

    label?: string

    The editor's accessible name, which screen readers say when it gets the focus. Default 'Document'.

    language?: string

    The default language, BCP 47. Default 'en-US'.

    mac?: boolean

    The keys follow macOS: ⌘ with the arrows moves to the line's or the document's edge, ⌥ with them by word or paragraph, and ⌥ with Backspace or Delete deletes a word. Default false.

    markupPaneWidth?: number

    Room beside the pages for balloons, CSS px. Default 0.

    mode?: "editing" | "design"

    Start in editing (the default) or design mode.

    overlayColors?: Partial<OverlayColors>

    The colours of what the editor draws over the document. Default: the engine's, or the system's colours while the platform is in forced-colours (high contrast) mode, which the editor then follows.

    paintBudget?: { recordings?: number }

    The memory the editor keeps pages' drawing in, bytes: their recordings (default 32 MB). Past it, what was drawn longest ago goes first.

    readOnly?: boolean

    Start read only. Default false.

    rulers?: boolean | { horizontal?: boolean; vertical?: boolean }

    The built-in rulers. Default off.

    rulerUnit?: RulerUnit

    The ruler unit. Default from language: inches for en-US, centimeters otherwise.

    signal?: AbortSignal

    Aborts the mount; everything it created is released.

    subTemplateRules?: ReferenceRule[]

    Which fields are sub-template references (Commands.setSubTemplateRules), in place from each open.

    trackChanges?: boolean

    Turns tracking on after open, unless the document locks it.

    zoom?: number | "pageWidth" | "wholePage"

    The zoom. Default 100.