Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

    Hierarchy

    • ProseMirrorMenuItem

    Index

    Properties

    action: string

    A string identifier for this menu item.

    title: string

    The description of the menu item.

    class: string

    An optional class to apply to the menu item.

    style: string

    An optional style to apply to the title text.

    icon: string

    The menu item's icon HTML.

    mark: MarkType

    The mark to apply to the selected text.

    node: NodeType

    The node to wrap the selected text in.

    attrs: any

    An object of attributes for the node or mark.

    priority: number

    A numeric priority which determines whether this item is displayed as the dropdown title. Lower priority takes precedence.

    cmd: ProseMirrorCommand

    The command to run when the menu item is clicked.

    active: boolean

    Whether the current item is active under the given selection or cursor.