mediawiki-extensions-CodeMi.../resources
MusikAnimal b464df36ab CodeMirrorSearch: catch exceptions from invalid regex input
Invalid regular expressions would error out on SearchQuery's getCursor()
method. This is arguably an upstream bug, but we want to inform the user
of invalid input anyway. We now show "Invalid regular expression" where
the "$1 of $2" codemirror-find-results message is normally shown, and we
add the error class to the Codex input. This is to be consistent with
how the 2017 editor behaves.

Also disable autocompletion which is more often distracting that
helpful for a search field.

Bump codemirror/search to include a fix where the selection isn't
updated after a regex replacement.
See https://discuss.codemirror.net/t/8832

Bug: T371436
Change-Id: I68722da98ef4925439caa64e8f3366031d56cf8e
2024-11-22 19:42:11 +00:00
..
legacy CodeMirror support for WikiEditor keyboard shortcuts 2024-10-17 13:55:28 +05:30
lib CodeMirrorSearch: catch exceptions from invalid regex input 2024-11-22 19:42:11 +00:00
ve-cm Merge "ve.ui.CodeMirrorAction.v6: Use direction of surface view, not model view" 2024-11-19 05:03:00 +00:00
.eslintrc.json Implement dark mode styles and use Codex CSS components in search panel 2024-08-29 18:59:57 -04:00
codemirror.bundle.js CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.gotoLine.js Implement dark mode styles and use Codex CSS components in search panel 2024-08-29 18:59:57 -04:00
codemirror.icon.svg CodeMirrorWikiEditor: use new icon and add text to toggle button 2024-08-09 06:08:33 +00:00
codemirror.js CodeMirrorPreferences: add panel to tweak prefs with the editor open 2024-11-18 22:23:22 -05:00
codemirror.less CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.mediawiki.autocomplete.js CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.mediawiki.bidiIsolation.js Isolate build step to CM6 library and restructure files to work with RL 2024-07-31 22:45:48 -04:00
codemirror.mediawiki.colorblind.less Isolate build step to CM6 library and restructure files to work with RL 2024-07-31 22:45:48 -04:00
codemirror.mediawiki.config.js Isolate build step to CM6 library and restructure files to work with RL 2024-07-31 22:45:48 -04:00
codemirror.mediawiki.init.js Isolate build step to CM6 library and restructure files to work with RL 2024-07-31 22:45:48 -04:00
codemirror.mediawiki.js CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.mediawiki.less CodeMirrorPreferences: add panel to tweak prefs with the editor open 2024-11-18 22:23:22 -05:00
codemirror.mediawiki.templateFolding.js CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.mixins.less CodeMirrorPreferences: add panel to tweak prefs with the editor open 2024-11-18 22:23:22 -05:00
codemirror.panel.js CodeMirrorPreferences: add panel to tweak prefs with the editor open 2024-11-18 22:23:22 -05:00
codemirror.preferences.js CodeMirrorModeMediaWiki: autocompletion 2024-11-19 16:02:35 +08:00
codemirror.search.js CodeMirrorSearch: catch exceptions from invalid regex input 2024-11-22 19:42:11 +00:00
codemirror.textSelection.js Isolate build step to CM6 library and restructure files to work with RL 2024-07-31 22:45:48 -04:00
codemirror.wikieditor.js CodeMirrorWikiEditor: make WikiEditor search button open CM search panel 2024-08-29 23:19:34 +00:00
codemirror.wikieditor.less Implement dark mode styles and use Codex CSS components in search panel 2024-08-29 18:59:57 -04:00
codemirror.wikieditor.mediawiki.init.js CodeMirrorPreferences: add panel to tweak prefs with the editor open 2024-11-18 22:23:22 -05:00