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_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.
StatickeyA unique key for this plugin that can be used to identify a plugin instance in any given editor.
Attach event listeners.
The root menu element.
Render the menu's HTML.
Called whenever the view's state is updated.
The current editor state.
The previous editor state.
Protected_ProtectedClear any marks from the current selection.
Protected_ProtectedClear a specific mark from the selection.
The mark to remove.
Protected_ProtectedInstantiate the ProseMirrorDropDown instances and configure them with the defined menu items.
Protected_ProtectedDisplay a prompt for font color.
Protected_ProtectedDisplay a prompt for a custom font size.
Protected_ProtectedConfigure dropdowns for this menu. Each entry in the top-level array corresponds to a separate drop-down.
Protected_Protected_ProtectedHandle requests to save the editor contents
Protected_ProtectedDisplay the insert image prompt.
Protected_ProtectedDisplay the insert link prompt.
Protected_ProtectedDisplay the insert table prompt.
Protected_ProtectedDetermine 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_ProtectedDetermine 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_ProtectedDetermine 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_ProtectedHandle a button press.
The click event.
Protected_ProtectedHandle collapsing various menu items to accommodate the menu's available width.
Protected_ProtectedPlace the given insert into the ProseMirror Document.
The editor state.
Dispatch changes to the editor state.
The editor view.
The insert's markup.
Optionaloptions: { inline?: boolean } = {}Optionalinline?: booleanWhether the insert contains inline content, otherwise block content is assumed.
Protected_ProtectedCreate 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_ProtectedToggle 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_ProtectedToggle a mark in the selection. Unlike the built-in toggleMark command, this will check for exact attribute matches to determine toggling behavior.
The mark to apply.
The mark's attributes.
Protected_ProtectedToggle link recommendations
Protected_ProtectedToggle 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_ProtectedWrap the editor view element and inject our template ready to be rendered into.
ProtectedgetProtectedGet the visible element from its action.
The action.
StaticactivateGlobal listeners for the drop-down menu.
The document to bind to.
StaticbuildBuild the plugin.
The ProseMirror schema to build the plugin against.
Additional options to pass to the plugin.
A class responsible for building a menu for a ProseMirror instance.