Trilium Frontend API
    Preparing search index...

    Interface CKEditorApi

    interface CKEditorApi {
        appendBlockQuote(markdown: string): void;
        focus(): void;
        setText(text: string): void;
    }
    Index
    • Appends a > -prefixed markdown quote to the end of the editor as a real block-quote element (its prefixes stripped and content wrapped in a blockQuote, so it re-serializes to the same markdown), then places the cursor in an empty paragraph below it and focuses the editor. Existing content is preserved; an empty editor gets the quote at the top with no leading blank. Requires the BlockQuote plugin to be loaded on the editor instance.

      Parameters

      • markdown: string

        a > -prefixed markdown blockquote (lines may be joined by \n)

      Returns void

    • Returns void

    • Imperatively sets the text in the editor.

      Prefer setting currentValue prop where possible.

      Parameters

      • text: string

        text to set in the editor

      Returns void