Trilium Frontend API
    Preparing search index...

    Type Alias PluginFunctionConstructor<TContext>

    PluginFunctionConstructor: (editor: TContext) => void

    In its minimal form a plugin can be a simple function that accepts module:core/editor/editor~Editor the editor as a parameter:

    // A simple plugin that enables a data processor.
    function MyPlugin( editor ) {
    editor.data.processor = new MyDataProcessor();
    }

    Type Parameters

    Type Declaration