The ProseMirror schema to build a menu for.
The editor view.
Optionaloptions: ProseMirrorMenuOptions = {}Additional options to configure the plugin's behaviour.
Additional options to configure the plugin's behaviour.
Protected Static_MENU_An enumeration of editor scopes in which a menu item can appear
Track whether we are currently in a state of editing the HTML source.
Attach event listeners.
The root menu element.
Called when the view is destroyed or receives a state with different plugins.
Render the menu's HTML.
Called whenever the view's state is updated.
The current editor state.
The previous editor state.
Protected_clearProtectedClear any marks from the current selection.
Protected_createProtectedInstantiate the ProseMirrorDropDown instances and configure them with the defined menu items.
Protected_getProtectedConfigure dropdowns for this menu. Each entry in the top-level array corresponds to a separate drop-down.
Protected_getProtected_handleProtectedHandle requests to save the editor contents
Protected_insertProtectedDisplay the insert image prompt.
Protected_insertProtectedDisplay the insert link prompt.
Protected_insertProtectedDisplay the insert table prompt.
Protected_isProtectedDetermine 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_isProtectedDetermine 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_isProtectedDetermine 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_onProtectedHandle a button press.
The click event.
Protected_showProtectedCreate a dialog for a menu button.
The unique menu button action.
The dialog's template.
Optionaloptions: { data?: object } = {}Additional options to configure the dialog's behaviour.
Optionaldata?: objectData to pass to the template.
Protected_toggleProtectedToggle 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.
Optionaloptions: { attrs?: object } = {}Additional options to configure behaviour.
Optionalattrs?: objectAttributes for the node.
Protected_toggleProtectedToggle link recommendations
Protected_toggleProtectedToggle the given selection by wrapping it in a given text block, or reverting to a paragraph block.
The type of node being interacted with.
Optionaloptions: { attrs?: object } = {}Additional options to configure behaviour.
Optionalattrs?: objectAttributes for the node.
Protected_wrapProtectedWrap the editor view element and inject our template ready to be rendered into.
StaticbuildBuild the plugin.
The ProseMirror schema to build the plugin against.
Additional options to pass to the plugin.
StaticeventGlobal listeners for the drop-down menu.
A class responsible for building a menu for a ProseMirror instance.