• A hook even that fires when a ProseMirrorMenu's buttons are initialized. The hook provides the ProseMirrorMenu instance and an array of button configuration data. Hooked functions may append their own buttons to the list.

    getProseMirrorMenuItems

    Parameters

    • menu: ProseMirrorMenu

      The ProseMirrorMenu instance.

    • config: ProseMirrorMenuItem[]

      The button configuration objects.

    Returns void