Trilium Electron API
    Preparing search index...

    Interface ElectronSpellcheckApi

    Renderer-side access to Chromium's built-in spell checker.

    interface ElectronSpellcheckApi {
        addWordToDictionary(word: string): void;
        getAvailableSpellCheckerLanguages(): string[];
        setSpellCheckerEnabled(enabled: boolean): void;
        setSpellCheckerLanguages(languageCodes: string[]): void;
    }
    Index

    Methods

    • Adds a word to the user's personal dictionary so it is no longer flagged.

      Parameters

      • word: string

      Returns void

    • Returns the BCP-47 language tags Chromium can spell-check on this platform.

      Returns string[]

    • Enables or disables the built-in spell checker on every open window's session immediately, without an application restart.

      Parameters

      • enabled: boolean

      Returns void

    • Applies the spell-check language list to every open window's session immediately, without an application restart. No-op on macOS, where the OS spell checker auto-detects the language.

      Parameters

      • languageCodes: string[]

      Returns void