The ProseMirror schema to build a menu for.
The editor view.
An HTML element that we write HTML to before injecting it into the DOM.
Track whether we are currently in a state of editing the HTML source.
An enumeration of editor scopes in which a menu item can appear
Render the menu's HTML.
Attach event listeners.
The root menu element.
Called whenever the view's state is updated.
The current editor state.
The previous editor state.
Called when the view is destroyed or receives a state with different plugins.
Instantiate the ProseMirrorDropDown instances and configure them with the defined menu items.
Configure dropdowns for this menu. Each entry in the top-level array corresponds to a separate drop-down.
Configure the items for this menu.
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.
Determine whether the given menu item representing a mark is active or not.
The menu item representing a {@link MarkType}.
Whether the cursor or selection is in a state represented by the given mark.
Determine whether the given menu item representing a node is active or not.
The menu item representing a {@link NodeType}.
Whether the cursor or selection is currently within a block of this menu item's node type.
Handle a button press.
The click event.
Wrap the editor view element and inject our template ready to be rendered into.
Handle requests to save the editor contents
Handle a request to edit the source HTML directly.
Display the insert image prompt.
Display the insert link prompt.
Create a dialog for a menu button.
The unique menu button action.
The dialog's template.
Additional options to configure the dialog's behaviour.
Clear any marks from the current selection.
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.
Additional options to configure behaviour.
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.
Additional options to configure behaviour.
Conclude editing the source HTML textarea. Clear its contents and return the HTML which was contained.
The HTML text contained within the textarea before it was cleared
Create and activate the source code editing textarea
Commit changes from the source textarea to the view.
Inserts a horizontal rule at the cursor.
Toggle a particular alignment for the given selection.
The text alignment to toggle.
Build the plugin.
The ProseMirror schema to build the plugin against.
A class responsible for building a menu for a ProseMirror instance.