typograph-editor-documentation
    Preparing search index...

    Interface editor_options

    interface editor_options {
        collaboration?: collaboration_options;
        container?: string | HTMLElement;
        header_space?: number | boolean;
        host?: HostProviders;
        legacy_php_fallback?: boolean;
        locale?: string;
    }
    Index
    collaboration?: collaboration_options

    Work in one template together: everyone in it sees the others' pointers and selections (TYP-918). Omit it and the editor makes no connection at all — exactly as before this option existed. See docs/Collaboration.md.

    container?: string | HTMLElement

    Where the chrome is built. Defaults to document.body.

    header_space?: number | boolean

    The empty strip above the menu bar, where a host puts its logo. 57px by default.

    false removes it and everything below moves up; a number sets its height in pixels. Omit it and the layout is exactly what it has always been — the stylesheet keeps 57px as its fallback, so a page that says nothing is untouched.

    host?: HostProviders

    The providers a host uses to back documents, templates, clips, images, fonts and saving (TYP-697). Forwarded into typograph.setup({host}) so the document's registry is populated from the start, instead of a host reaching into editor.get_document().host.set_providers(...) after construction.

    Omit it and nothing changes — the registry stays empty, exactly as before this option existed.

    legacy_php_fallback?: boolean

    false turns every PHP fallback off (TYP-697): only providers from host are used, and UI without a provider disappears. Defaults to true on latest; removed in v2.

    locale?: string

    The language of the editor's own texts — menus, tooltips, panels, dialogs and dates (TYP-1287): 'en' or 'nl'; 'nl-NL' counts as 'nl'. Omit it and the editor takes data-typograph-locale on , and without that English, as it always was. A language the editor has no texts for is English. The document's own text is never translated.