Expand all

CodeMirrorMediaWikiKeymap

MediaWiki-specific key bindings for CodeMirror. This is automatically applied when using CodeMirrorMediaWiki.

Properties

Methods

blockquote() → {boolean} #

Format the selected text as a blockquote.

Source:

Returns:

Type
boolean
Format the selected text as a blockquote.

bold() → {boolean} #

Bold the selected text.

Source:

Returns:

Type
boolean
Bold the selected text.

comment() → {boolean} #

Insert or toggle a comment around the selected text.

Source:

Returns:

Type
boolean
Insert or toggle a comment around the selected text.

computerCode() → {boolean} #

Format the selected text as computer code.

Source:

Returns:

Type
boolean
Format the selected text as computer code.

heading(level) → {boolean} #

Change the current line to be a heading of the specified level.

Parameters:

Name Type Description
level number
Source:

Returns:

Type
boolean
Change the current line to be a heading of the specified level.

italic() → {boolean} #

Italicize the selected text.

Source:

Returns:

Type
boolean
Italicize the selected text.
Insert a link.

nowiki() → {boolean} #

Treat the selected text as unformatted wikitext.

Source:

Returns:

Type
boolean
Treat the selected text as unformatted wikitext.

preformatted() → {boolean} #

Format the selected text as preformatted.

Source:

Returns:

Type
boolean
Format the selected text as preformatted.

reference() → {boolean} #

Insert a reference.

Source:

Returns:

Type
boolean
Insert a reference.

registerKeyBindings() #

Register each CodeMirrorKeyBinding with CodeMirrorKeymap, and make the key bindings immediately available in the editor.

Source:

Register each CodeMirrorKeyBinding with CodeMirrorKeymap, and make the key bindings immediately available in the editor.

strikethrough() → {boolean} #

Format the selected text as strikethrough.

Source:

Returns:

Type
boolean
Format the selected text as strikethrough.

subscript() → {boolean} #

Format the selected text as subscript.

Source:

Returns:

Type
boolean
Format the selected text as subscript.

superscript() → {boolean} #

Format the selected text as superscript.

Source:

Returns:

Type
boolean
Format the selected text as superscript.

underline() → {boolean} #

Format the selected text as underlined.

Source:

Returns:

Type
boolean
Format the selected text as underlined.