The ProseMirror schema to build a menu for.
The editor view.
Optional
options: ProseMirrorMenuOptions = {}Additional options to configure the plugin's behaviour.
Additional options to configure the plugin's behaviour.
Private
#renderAn HTML element that we write HTML to before injecting it into the DOM.
Private
#editingTrack whether we are currently in a state of editing the HTML source.
Static
Protected
_MENU_An enumeration of editor scopes in which a menu item can appear
Render the menu's HTML.
Protected
_createProtected
_getProtected
Configure dropdowns for this menu. Each entry in the top-level array corresponds to a separate drop-down.
Protected
_getProtected
Configure the items for this menu.
Protected
_isProtected
Determine whether the given menu item is currently active or not.
The menu item.
Whether the cursor or selection is in a state represented by the given menu item.
Protected
_isProtected
Determine whether the given menu item representing a mark is active or not.
The menu item representing a MarkType.
Whether the cursor or selection is in a state represented by the given mark.
Protected
_isProtected
Determine whether the given menu item representing a node is active or not.
The menu item representing a NodeType.
Whether the cursor or selection is currently within a block of this menu item's node type.
Protected
_onProtected
_wrapProtected
_handleProtected
#toggleProtected
_insertProtected
_insertProtected
_insertProtected
_showProtected
Create a dialog for a menu button.
The unique menu button action.
The dialog's template.
Optional
options: { Additional options to configure the dialog's behaviour.
Data to pass to the template.
Protected
_clearProtected
_toggleProtected
_toggleProtected
Toggle the given selection by wrapping it in a given block or lifting it out of one.
The type of node being interacted with.
The wrap command specific to the given node.
Optional
options: { Additional options to configure behaviour.
Attributes for the node.
Protected
_toggleProtected
Toggle the given selection by wrapping it in a given text block, or reverting to a paragraph block.
The type of node being interacted with.
Optional
options: { Additional options to configure behaviour.
Attributes for the node.
Private
#clearPrivate
#activatePrivate
#commitPrivate
#handlePrivate
#insertPrivate
#toggleStatic
buildStatic
event
A class responsible for building a menu for a ProseMirror instance.