Skip to content

Latest commit

 

History

History
1105 lines (610 loc) · 26.7 KB

CHANGELOG.md

File metadata and controls

1105 lines (610 loc) · 26.7 KB

2.19.4

2024-12-17

Fixed

2.19.3

2024-12-11

Added

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

2.19.2

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

2.19.1

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

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

2.18.13

2024-11-30

Fixed

  • Detection of <ref> definitions with non-empty content for a Monaco editor

2.18.12

2024-11-20

Changed

  • The Lua linter is now based on Luacheck instead of luaparse

2.18.9

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

2.18.8

2024-11-13

Changed

  • The openLinks extension for a Monaco editor now also supports the cite HTML attribute and MediaWiki-style external links

2.18.7

2024-11-09

Fixed

2.18.6

2024-11-02

Fixed

  • Language conversion inside <pre> in the MediaWiki mode
  • Braces are now highlighted inside <references> in the MediaWiki mode

2.18.5

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

2.18.3

2024-10-30

Fixed

  • The colorPicker extension now shows a gray outline for the color picker

2.18.2

2024-10-28

Changed

  • The colorPicker extension now works for parameter values in the MediaWiki mode

2.18.0

2024-10-26

Added

2.17.5

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

2.17.4

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

2.17.3

2024-08-17

Added

  • Autocompletion for the follow and extends attributes of <ref> in the MediaWiki mode
  • The openLinks extension now also supports the src attribute of the <templatestyles> tag

2.17.2

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

  • The openLinks extension during editing on a MediaWiki site
  • Font size of the gotoLine panel

2.17.1

2024-08-04

Added

Fixed

  • The tagMatching extension now ignores the case of the tag name

2.16.0

2024-08-02

Added

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

2.15.5

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

2.15.3

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

2.14.9

2024-07-10

Fixed

  • Fix highlighting of language conversion in the MediaWiki mode

2.14.7

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

2.14.6

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

2.14.5

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

2.14.4

2024-06-06

Added

  • Automatically close the lint panel when there are no errors

2.14.3

2024-06-04

Added

Fixed

  • Nested tables led by \t in the MediaWiki mode

2.14.2

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

2.14.1

2024-05-28

Added

  • Highlight tag and table attribute values in the MediaWiki mode

2.14.0

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 and noinclude 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

2.13.1

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

2.13.0

2024-05-18

Added

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

2.12.6

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

v2.12.5

2024-05-09

Fixed

  • Fix the wikiparse configuration when used on a MediaWiki site

v2.12.4

2024-05-09

Added

v2.12.3

2024-05-08

Added

Fixed

  • Exclude nested extension tags from autocompletion in the MediaWiki mode

v2.12.2

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 for cm-mw-tag-pre and cm-mw-tag-nowiki, are removed in the MediaWiki mode

v2.12.1

2024-05-05

Added

Fixed

  • Fix incompatibility with jQuery < 3.4

Changed

  • Autocompletion for MediaWiki parser functions starting with # is now automatically triggered

v2.12.0

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

2.11.3

2024-05-02

Added

Fixed

  • visible is corrected for the Monaco editor

2.11.2

2024-05-02

Fixed

  • On a MediaWiki site, the static method fromTextArea now returns a Promise that resolves when the editor is initialized

2.11.1

2024-05-01

Added

Changed

  • Changes to the editor now trigger the input event on the textarea element

2.10.0

2024-04-25

Added

Changed

  • The lint extension will not scroll to the panel after initialization

2.9.5

2024-04-19

Fixed

2.9.4

2024-04-17

Fixed

  • Autocompletion for behavior switches and extension tags in the MediaWiki mode

2.9.3

2024-04-04

Added

  • The textarea element now dispatches relevant events when the editor is focused or blurred

2.9.2

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

2.9.1

2024-03-20

Fixed

  • Fix invalid \\: escaping in MwConfig.urlProtocols in the MediaWiki mode, since v2.8.3

2.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

2.7.7

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

v2.7.4

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

v2.7.2

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

v2.7.1

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

v2.7.0

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

v2.6.8

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

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

v2.6.6

2024-02-29

Fixed

  • Keyboard shortcut for template folding (Ctrl + Shift + [/Cmd + Alt + [) now works wherever the tooltip is displayed

v2.6.5

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

v2.6.4

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

v2.6.3

2024-02-24

Added

Fixed

  • Luaparse now parses Lua 5.3

Changed

  • When used on a MediaWiki site, ESLint now treats mw, $ and OO as global variables

v2.6.2

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]/

v2.6.1

2024-02-22

Fixed

  • Interaction between the tagMatching extension and uncustomized extension tags

v2.6.0

2024-02-22

Added

  • The preference dialog on a MediaWiki site adds a new tab for WikiLint configurations

v2.5.1

2024-02-21

Added

  • New extension option for the MediaWiki mode: autocompletion
  • ESLint and Stylelint now provide auto-fix suggestions

v2.4.7

2024-02-12

Added

Fixed

  • The openLinks extension now correctly detects page names with &

Changed

  • The placeholder of the codeFolding extension now contains a leading |

v2.4.5

2024-02-07

Added

  • New extension option for the MediaWiki mode: wikiEditor

v2.4.2

2024-02-06

Added

Changed

  • The openLinks extension now utilizes the syntax tree to detect page names

v2.4.1

2024-02-06

Added

  • New extension option for the MediaWiki mode: tagMatching

v2.3.5

2024-02-05

Added

  • Keyboard shortcuts for unfold and unfold-all

Fixed

  • Folding a long template or a nested template

v2.3.3

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

v2.3.0

2024-02-02

Added

  • New extension option for the MediaWiki mode: codeFolding
  • When used on a MediaWiki site, a welcome message will be sent

v2.2.3

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

v2.2.2

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

v2.1.15

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

v2.1.12

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

v2.1.11

2024-01-22

Added

v2.1.10

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

v2.1.9

2024-01-18

Added

Fixed

  • No more auto-focusing on the lint panel
  • '/' in HTML and extension tag attributes, since v2.1.0

v2.1.8

2024-01-17

Added

Changed

  • Reseting the editor size in toggle method

v2.1.5

2024-01-15

Added

  • More permitted HTML tags in the mixed MediaWiki-HTML mode

v2.1.3

2024-01-14

Added

v2.1.2

2024-01-13

Added

  • Language support for JSON
  • Read-only mode
  • The MediaWiki-site version now automatically detects the language on editing pages

v2.1.0

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 from MediaWiki.urlProtocols

v2.0.15

2024-01-11

Fixed

  • Missing token styles

v2.0.14

2023-12-20

Added

Fixed

  • Initial scrollTop of the editor

Changed

  • The argument type of lint method

v2.0.12

2023-12-17

Added

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

v2.0.9

2023-12-16

Added

Fixed

  • Initial height of the editor

v2.0.7

2023-12-14

Added