2024-12-17
Fixed
- The openLinks extension should only be triggered by a main button click on a MediaWiki site
- Conflict between the openExtLinks extension and the allowMultipleSelections extension
2024-12-11
Added
- New extension option for the MediaWiki mode: openExtLinks
Fixed
jquery.textSelection
implementation for the Monaco editor on a MediaWiki site- Cursor style for magic links in the MediaWiki mode when the openLinks extension is enabled on a MediaWiki site
Changed
- The
Tab
key now indents the current line
2024-12-05
Fixed
- Highlighting of apostrophes in different table cells in one line in the MediaWiki mode
- Incompatibility with the wikiEditor heading tool when using the Monaco editor on a MediaWiki site
Changed
- The preference dialog on a MediaWiki site is now styled as
z-index: 801
- The preferences button from the WikiEditor toolbar is now hidden when the CodeMirror editor is off
2024-12-04
Added
Ctrl-Shift-z
now triggers the redo command on Windows- When the wikiEditor extension is enabled, a button is added to the toolbar to switch on/off the CodeMirror/Monaco editor
Fixed
- Fix for the incoming temporary accounts on a MediaWiki site
Changed
- The font preference on a MediaWiki site now applies to the CodeMirror editor
- The bracketMatching extension now also applies to CJK full-width brackets in the MediaWiki mode
2024-11-30
Fixed
- Detection of
<ref>
definitions with non-empty content for a Monaco editor
2024-11-20
Changed
- The Lua linter is now based on Luacheck instead of luaparse
2024-11-19
Changed
- The autocompletion and openLinks extensions now also support widget pages when used on a MediaWiki site
- The Lua linter now warns about the use of global variables
2024-11-13
Changed
- The openLinks extension for a Monaco editor now also supports the
cite
HTML attribute and MediaWiki-style external links
2024-11-09
Fixed
- The colorPicker extension for RGB and HSL colors
2024-11-02
Fixed
- Language conversion inside
<pre>
in the MediaWiki mode - Braces are now highlighted inside
<references>
in the MediaWiki mode
2024-11-02
Added
- Always highlight the active line gutters
- Improved highlighting of
<pre>
in the MediaWiki mode
Changed
- The colorPicker extension now works for argument default values in the MediaWiki mode
- HTML comments instead of braces are now highlighted inside
<inputbox>
in the MediaWiki mode
2024-10-30
Fixed
- The colorPicker extension now shows a gray outline for the color picker
2024-10-28
Changed
- The colorPicker extension now works for parameter values in the MediaWiki mode
2024-10-26
Added
- New extension option: colorPicker
2024-10-21
Added
- Highlight JSON code blocks in the MediaWiki mode
Fixed
- The openLinks extension now correctly detects page names with HTML/URL encoding in the MediaWiki mode
- Language conversion in table cells in the MediaWiki mode
2024-08-24
Added
- Autocompletion for the
group
attribute of<ref>
and<references>
in the MediaWiki mode
Fixed
#
in an HTML entity should not be regarded as link fragment in the MediaWiki mode
2024-08-17
Added
- Autocompletion for the
follow
andextends
attributes of<ref>
in the MediaWiki mode - The openLinks extension now also supports the
src
attribute of the<templatestyles>
tag
2024-08-16
Added
- The openLinks extension can now be triggered by clicking on the link fragment
- Autocompletion for the
name
attribute of<ref>
in the MediaWiki mode - Table syntax using templates
{{(!}}
,{{!)}}
,{{!-}}
,{{!+}}
and{{!!}}
in the MediaWiki mode
Fixed
2024-08-04
Added
- New extension option: refHover
Fixed
- The tagMatching extension now ignores the case of the tag name
2024-08-02
Added
CodeMirror
constructor now takes an optional string argument for the page title on a MediaWiki site
Fixed
- The background color of specific tokens in the MediaWiki mode is now semi-transparent
Changed
- Autocompletion that requires MediaWiki api is now triggered by
Shift
+Enter
2024-07-29
Added
- Highlight parameter names for parser functions
#tag
and#switch
in the MediaWiki mode
Fixed
- Remove comments and ignore invalid page names in the openLinks extension for a Monaco editor used on a MediaWiki site
- Redirection syntax can have leading whitespace in the MediaWiki mode
2024-07-13
Added
prefer
now partially works with the Monaco editor- Support for
jquery.textSelection
with multiple selections of a Monaco editor when used on a MediaWiki site - New extension options: highlightSelectionMatches and scrollPastEnd
- When used on a MediaWiki site, the useMonaco preference can be set for individual languages
Fixed
- Unreachable Monaco editors will be disposed on a MediaWiki site
2024-07-10
Fixed
- Fix highlighting of language conversion in the MediaWiki mode
2024-06-13
Added
- Bidi isolation for template parameters in the MediaWiki mode
Fixed
- Indentation of the nested CSS/JavaScript/Lua modes in the MediaWiki mode
Changed
- When the escape extension is enabled but there is no selection, indentMore and indentLess keyboard shortcuts will take effect
- The tooltip of the codeFolding extension will be hidden when typing and semi-transparent unless hovered
2024-06-11
Added
- Highlight CSS/JavaScipt/Lua code blocks in the MediaWiki mode
Fixed
- Text direction of the panels
- Nested CSS and JavaScript modes in the mixed MediaWiki-HTML mode, since v2.13.0
2024-06-07
Added
- Bidi isolation for HTML/extension tags and table attributes in the MediaWiki mode
- New key binding
Mod
+Shift
+X
to toggle between LTR and RTL
Fixed
1 px
as a valid image size in the MediaWiki mode
2024-06-06
Added
- Automatically close the lint panel when there are no errors
2024-06-04
Added
- CodeFolding for tables in the MediaWiki mode
Fixed
- Nested tables led by
\t
in the MediaWiki mode
2024-05-29
Fixed
- Ignore
:
inside HTML tags in the MediaWiki mode - Lines following a very long line containing extension tags in the MediaWiki mode
Changed
- Behavior changed for closing tags in a wrong order in the MediaWiki mode
2024-05-28
Added
- Highlight tag and table attribute values in the MediaWiki mode
2024-05-27
Added
- Extension modes for
<references>
,<inputbox>
and<gallery>
in the MediaWiki mode - Magic links (RFC, PMID and ISBN) and openLinks support in the MediaWiki mode
- Highlight image size in the MediaWiki mode
- Autocompletion for table cell attributes when explicitly triggered in the MediaWiki mode
- Highlight language conversion in the MediaWiki mode
Fixed
|
and=
in HTML tag attributes inside a template or parser function argument in the MediaWiki mode|
inside a variable default value in the MediaWiki mode- Allow extension tags in HTML tag attributes in the MediaWiki mode
- No wikilink in table cell attributes in the MediaWiki mode
- Tags in template names in the MediaWiki mode
- Non-existent magic words such as
toString
and__proto__
in the MediaWiki mode <!-->
in the MediaWiki mode- Leading whitespace (e.g.,
\t
) of a table in the MediaWiki mode [[]]
in a file link in the MediaWiki mode- Allow section headers, horizontal rules and tables in a file link in the MediaWiki mode
- Allow section headers in template arguments in the MediaWiki mode
Changed
- Treat
onlyinclude
,includeonly
andnoinclude
as extension tags in the MediaWiki mode - Break variable name syntax at SOL in the MediaWiki mode
- New CSS class
cm-mw-table-th
for table header cells in the MediaWiki mode
2024-05-21
Fixed
- Autocompletion for external links inside a file link in the MediaWiki mode
- Some invalid section header syntax in the MediaWiki mode
- Allow templates in HTML tag attributes in the MediaWiki mode
|
delimiter in an external link or a table inside a template or parser function argument in the MediaWiki mode=
in an external link or a table inside a template argument in the MediaWiki mode
2024-05-18
Added
- CodeFolding for sections in the MediaWiki mode
- Parser tests
Fixed
- CodeFolding keyboard shortcuts in the MediaWiki mode
- Double brackets followed by a valid URL protocol should be an external link in the MediaWiki mode
- Template argument names are now correctly highlighted in the MediaWiki mode
<
breaks the wikilink syntax in the MediaWiki mode- Table cell attributes are now correctly highlighted and autocompleted in the MediaWiki mode
- Page name of a file link now contains the namespace in the MediaWiki mode
Changed
- MediaWiki tokenizer reworked to mimic the parser more closely
- New CSS class
cm-mw-table-delimiter2
for|
delimiter within a table cell in the MediaWiki mode
2024-05-11
Added
- OpenLinks now also includes fragment of wikilinks in the MediaWiki mode
Fixed
- Autocompletion for subpage name and page name containing
_
in the MediaWiki mode
Removed
- Highlighting of HTML entities in page names in the MediaWiki mode
2024-05-09
Fixed
- Fix the wikiparse configuration when used on a MediaWiki site
2024-05-09
Added
- Autocompletion for extension tag attributes in the MediaWiki mode
2024-05-08
Added
- Autocompletion for HTML tag attributes in the MediaWiki mode
Fixed
- Exclude nested extension tags from autocompletion in the MediaWiki mode
2024-05-07
Added
- Autocompletion for URL protocols and image parameters in the MediaWiki mode
- CodeFolding for extension tags with specified modes in the MediaWiki mode
- Highlighting of redirection and image parameters in the MediaWiki mode
Fixed
- Self-closing extension tags with
/
in its attributes in the MediaWiki mode
Removed
- Extra
cm-mw-tag-*
HTML classes, except forcm-mw-tag-pre
andcm-mw-tag-nowiki
, are removed in the MediaWiki mode
2024-05-05
Added
- Template parameter autocompletion in the MediaWiki mode based on the TemplateData extension
Fixed
- Fix incompatibility with jQuery < 3.4
Changed
- Autocompletion for MediaWiki parser functions starting with
#
is now automatically triggered
2024-05-04
Added
- Highlight the module page name in the MediaWiki mode
- Wikilink, template and module autocompletion in the MediaWiki mode based on the opensearch API
- When used on a MediaWiki site, the openLinks extension now also opens module pages
- CodeFolding now also supports folding of parser functions and extension tags in the MediaWiki mode
Fixed
- Allow spaces in the parser function name in the MediaWiki mode
Changed
- Autocompletion for MediaWiki parser functions is now only triggered by
Ctrl
+Space
2024-05-02
Added
- CodeFolding for Lua
- Improved autocompletion for CSS base on the browser
CSS.supports()
static method
Fixed
visible
is corrected for the Monaco editor
2024-05-02
Fixed
- On a MediaWiki site, the static method
fromTextArea
now returns aPromise
that resolves when the editor is initialized
2024-05-01
Added
- Autocompletion for JavaScript now includes the scopeCompletionSource
- New extension option: useMonaco
Changed
- Changes to the editor now trigger the
input
event on the textarea element
2024-04-25
Added
- Autocompletion and codeFolding for CSS and JavaScript modes
Changed
- The lint extension will not scroll to the panel after initialization
2024-04-19
Fixed
- Fix a style conflict with MediaWiki's CodeMirror 5 extension
- Fix inconsistency with ESLint v9
2024-04-17
Fixed
- Autocompletion for behavior switches and extension tags in the MediaWiki mode
2024-04-04
Added
- The textarea element now dispatches relevant events when the editor is focused or blurred
2024-04-01
Fixed
- In the MediaWiki mode,
<
now breaks the HTML tag syntax - Highlight template argument names containing special characters in the MediaWiki mode, since v2.8.3
2024-03-20
Fixed
- Fix invalid
\\:
escaping inMwConfig.urlProtocols
in the MediaWiki mode, since v2.8.3
2024-03-15
Added
- Syntax like
;a:b
in the MediaWiki mode is now correctly highlighted - Text after
;
in the MediaWiki mode is now highlighted in bold - Highlighting syntax at SOL in variable default values and parser function/template arguments in the MediaWiki mode
Fixed
- Apostrophes in wikilinks are now correctly highlighted in the MediaWiki mode
- Allow comments in template names in the MediaWiki mode
- Allow external links in the image caption in the MediaWiki mode
- Allow special characters in the anchor of a template name in the MediaWiki mode
- Correctly highlight the
=
in a template argument in the MediaWiki mode
Changed
- Darker text colors in the MediaWiki mode
2024-03-11
Added
- Support for
jquery.textSelection
with multiple selections when used on a MediaWiki site
Fixed
- Improved tag autocompletion in the MediaWiki mode
- Links and behavior switches are now ignored in table attributes in the MediaWiki mode
- Allow HTML comments in wikilinks in the MediaWiki mode
- Conflict between the openLinks extension and the allowMultipleSelections extension
Changed
- Now any Wikitext syntax will end the url of an external link in the MediaWiki mode
- Anchors in file links are now highlighted as errors in the MediaWiki mode
- The replacement function passed to
CodeMirror6.replaceSelections
now has an expanded signature
2024-03-09
Added
- New keyboard shortcut for codeFolding:
Ctrl
+Alt
+[
- When used on a MediaWiki site, the openLinks extension now also opens external links
Fixed
- Behavior switches with non-ASCII characters in the MediaWiki mode
- Disallow multiline free external links in the MediaWiki mode
- Allow wikilinks in external links in the MediaWiki mode
- Allow HTML comments in template variables in the MediaWiki mode
Changed
- When used on a MediaWiki site, wikilinks in messages are now opened in a new tab
2024-03-07
Added
- More extension tags are now highlighted in the MediaWiki mode
Changed
- Now switching off the save extension will also be recorded on the user subpage, and the preference settings loaded from the user subpage will not be applied if the
save
extension is switched off
2024-03-06
Fixed
- Now
fromTextArea
will wait to load preference settings from the user's subpage before creating the editor on a MediaWiki site
2024-03-05
Added
- When used on a MediaWiki site, users can now save their preference settings on a user subpage
Fixed
- When used on a MediaWiki site, loading multiple visible CodeMirror editors for one textarea element is now prohibited
2024-03-03
Added
- Spell-checking for the MediaWiki mode
Fixed
- When used on a MediaWiki site, the editor now correctly memorizes the scroll position after a page reload
- Syntax at SOL in a table cell in the MediaWiki mode, since v2.6.7
2024-03-01
Added
- Fostered table content is now highlighted as errors in the MediaWiki mode
Fixed
- Syntax like
: {|
in the MediaWiki mode is now correctly highlighted as an indented table - Multiline table cells in the MediaWiki mode
- Missing underline of template names in the MediaWiki mode
Changed
- Keyboard shortcut for template folding (
Ctrl
+Shift
+[
/Cmd
+Alt
+[
) now resets the cursor position
2024-02-29
Fixed
- Keyboard shortcut for template folding (
Ctrl
+Shift
+[
/Cmd
+Alt
+[
) now works wherever the tooltip is displayed
2024-02-27
Fixed
- Onclick event of the placeholder of the codeFolding extension
- Multiple WikiEditor toolbars in certain conditions
Changed
- Now an unmatched closing HTML tag will not influence the stack
2024-02-26
Added
- A simple linter for JSON
Fixed
- Unintentional change of the first checkbox due to click within the MediaWiki-site preference dialog
2024-02-24
Added
- New static property:
version
Fixed
- Luaparse now parses Lua 5.3
Changed
- When used on a MediaWiki site, ESLint now treats
mw
,$
andOO
as global variables
2024-02-24
Added
- New method:
scrollTo
- The preference dialog on a MediaWiki site adds new tabs for ESLint and Stylelint configurations
Fixed
- In the MediaWiki mode, a valid tag name now must end with
/[>/\s]/
2024-02-22
Fixed
- Interaction between the tagMatching extension and uncustomized extension tags
2024-02-22
Added
- The preference dialog on a MediaWiki site adds a new tab for WikiLint configurations
2024-02-21
Added
- New extension option for the MediaWiki mode: autocompletion
- ESLint and Stylelint now provide auto-fix suggestions
2024-02-12
Added
- New static method:
getMwConfig
Fixed
- The openLinks extension now correctly detects page names with
&
Changed
- The placeholder of the codeFolding extension now contains a leading
|
2024-02-07
Added
- New extension option for the MediaWiki mode: wikiEditor
2024-02-06
Added
- New method:
getNodeAt
Changed
- The openLinks extension now utilizes the syntax tree to detect page names
2024-02-06
Added
- New extension option for the MediaWiki mode: tagMatching
2024-02-05
Added
- Keyboard shortcuts for unfold and unfold-all
Fixed
- Folding a long template or a nested template
2024-02-04
Added
- New method:
localize
- The search dialog is now localized when used on a MediaWiki site
Fixed
- The keyboard shortcut for template folding now closes the tooltip
2024-02-02
Added
- New extension option for the MediaWiki mode: codeFolding
- When used on a MediaWiki site, a welcome message will be sent
2024-02-01
Added
- The MediaWiki mode now has a comment syntax:
<!--
+-->
- The preference dialog on a MediaWiki site now allows for full-HTML labels
2024-02-01
Added
- New extension option for the MediaWiki mode: escape
- New method:
extraKeys
- New static method:
replaceSelections
- Now on a MediaWiki site, a user can toggle extensions on and off with a dialog
Changed
fromTextArea
now takes one more optional argument of the namespace id
2024-01-30
Added
- New extension option for the MediaWiki mode: openLinks
Changed
prefer
now takes either an array of strings or an object as the argument
2024-01-27
Added
defaultLint
now detects the user's language preference
Fixed
- Now the editor and the textarea element are synced in selection, focus and scroll position when toggling
Changed
getLinter
temporarily disabling the warning of low-severity lint errors for Wikitext until the next minor version
2024-01-22
Added
- New extension option: allowMultipleSelections
2024-01-19
Fixed
- A valid external link requires at least one legal character after the protocol
- Attribute delimiter of table captions and table cells
- Unmatched closing tag
2024-01-18
Added
- LintKeymap
defaultLint
can take a namespace id as a second argument in place of a configuration object
Fixed
- No more auto-focusing on the lint panel
'/'
in HTML and extension tag attributes, since v2.1.0
2024-01-17
Added
- New method:
setContent
Changed
- Reseting the editor size in
toggle
method
2024-01-15
Added
- More permitted HTML tags in the mixed MediaWiki-HTML mode
2024-01-14
Added
2024-01-13
Added
- Language support for JSON
- Read-only mode
- The MediaWiki-site version now automatically detects the language on editing pages
2024-01-13
Added
- Accurate HTML entity recognition
- File link with multiple parameters and links in the caption
{{!}}
in table syntax- Warning for illegal characters in link or template page names
<dt>
using;
Fixed
- Multiline closing extension tags
- Punctuations in free external links
- Multiple table captions
- Syntax like
[[a|[b]]]
- HTML5 standard for invalid auto-closing tags
- Missing ground styles in some conditions
- Mistakenly recognized
<!--
(e.g.,<b!--
) - Multiple template variable default values
- Removing the
u
flag fromMediaWiki.urlProtocols
2024-01-11
Fixed
- Missing token styles
2023-12-20
Added
- New property:
lang
- New method:
getLinter
- First integration with MediaWiki environment
Fixed
- Initial scrollTop of the editor
Changed
- The argument type of
lint
method
2023-12-17
Added
- New extension option: highlightWhitespace
- The textarea element now syncs with the editor
Fixed
- Highlight styles for Wikitext no longer contaminate other languages
- More robust DOM structure
Changed
- The lint panel is now open by default
Removed
save
method
2023-12-16
Added
- Language support for Lua
- New extension options: highlightTrailingWhitespace, bracketMatching and closeBrackets
- New methods:
prefer
andsetIndent
Fixed
- Initial height of the editor
2023-12-14
Added
- CodeMirror 6 support
- Language support for Wikitext, JavaScript and CSS
- Extension options: highlightSpecialChars and highlightActiveLine