InsertOptions: {
    feedback?: boolean;
    focus?: boolean;
    format?: OutputFormat | "auto";
    insertionMode?:
        | "replaceSelection"
        | "replaceAll"
        | "insertBefore"
        | "insertAfter";
    mode?: ParseMode | "auto";
    scrollIntoView?: boolean;
    selectionMode?:
        | "placeholder"
        | "after"
        | "before"
        | "item";
    silenceNotifications?: boolean;
    style?: Style;
}

Type declaration

  • Optionalfeedback?: boolean

    If true, provide audio and haptic feedback

  • Optionalfocus?: boolean

    If true, the mathfield will be focused after the insertion

  • Optionalformat?: OutputFormat | "auto"

    The format of the input string:

    "auto" The string is LaTeX fragment or command) (default)
    "latex" The string is a LaTeX fragment
  • OptionalinsertionMode?:
        | "replaceSelection"
        | "replaceAll"
        | "insertBefore"
        | "insertAfter"
  • Optionalmode?: ParseMode | "auto"

    If "auto" or omitted, the current mode is used

  • OptionalscrollIntoView?: boolean

    If true, scroll the mathfield into view after insertion such that the insertion point is visible

  • OptionalselectionMode?:
        | "placeholder"
        | "after"
        | "before"
        | "item"

    Describes where the selection will be after the insertion:

    "placeholder" The selection will be the first available placeholder in the text that has been inserted (default)
    "after" The selection will be an insertion point after the inserted text
    "before" The selection will be an insertion point before the inserted text
    "item" The inserted text will be selected
  • OptionalsilenceNotifications?: boolean
  • Optionalstyle?: Style