ImprovedProseMirror

<includeonly>
ImprovedProseMirror is a script that adds the following functionality to the ProseMirror editor, which is used in article comments and message walls:
* Insertion of links through wikitext-like syntax
** Typing page searches for pages on the current wiki using page as a keyword, and opens a link suggest popup containing the results. After an option is selected, a link to the selected page will be created using that page's title as the link's label.
** label uses label as the label instead of the page's title.
** performs the pipe trick on the selected page's title before using it for the label.
** page reuses page as the label instead of using the page's title. (this is NOT the reverse pipe trick)
** Typing [label] opens a prompt to enter a URL, and a link will be created with that URL and label.
* Selection of preset messages from a dropdown in the editor toolbar
** Preset messages can be set in the user's or site's JavaScript (see Configuration). When configuring:
*** Link syntax for both internal wiki links and external links is supported ([[page|label]], [[page]], and [link label]).
*** Line breaks are supported through , , , and \n.
*** Variables can be declared with %variablename%. If their values are left undefined, a prompt asking for a value will appear each time the preset is selected in the text editor. Their values can also be defined in the configuration, which will cause no prompt to appear when the preset is selected.
== ==
== Configuration ==
The following configuration is optional, and there is no limit to the number of presets.