Trilium Frontend API
    Preparing search index...

    Interface CreateNoteOpts

    interface CreateNoteOpts {
        activate?: boolean;
        attributes?: Omit<AttributeRow, "attributeId" | "noteId">[];
        content?: string;
        focus?: "title" | "content";
        isProtected?: boolean;
        mime?: string;
        noteContext?: NoteContext;
        saveSelection?: boolean;
        target?: string;
        targetBranchId?: string;
        templateNoteId?: string;
        textEditor?: CKTextEditor;
        title?: string;
        type?: string;
    }
    Index
    activate?: boolean
    attributes?: Omit<AttributeRow, "attributeId" | "noteId">[]

    Attributes to be set on the note. These are set atomically on note creation, so entity changes are not sent for attributes defined here.

    content?: string
    focus?: "title" | "content"
    isProtected?: boolean
    mime?: string
    noteContext?: NoteContext

    Note context to activate the new note in. Popup dialogs (quick edit, tree popup) pass their own context here — it lives outside the tab manager, so defaulting to the active tab would activate the note in the background and close the dialog. When set, the surrounding dialog is kept open.

    saveSelection?: boolean
    target?: string
    targetBranchId?: string
    templateNoteId?: string
    textEditor?: CKTextEditor
    title?: string
    type?: string