Releases: codemirror/codemirror5
5.54.0
Version 5.54.0
Bug fixes
Improve support for having focus inside in-editor widgets in contenteditable-mode.
Fix issue where the scroll position could jump when clicking on a selection in Chrome.
python mode: Better format string support.
javascript mode: Improve parsing of private properties and class fields.
matchbrackets addon: Disable highlighting when the editor doesn't have focus.
New features
runmode addon: Properly support for cross-line lookahead.
vim bindings: Allow Ex-Commands with non-word names.
gfm mode: Add a fencedCodeBlockDefaultMode
option.
5.53.2
5.53.0
Version 5.53.0
Bug fixes
Fix a bug where the editor layout could remain confused after a call to refresh
when line wrapping was enabled.
dialog addon: Don't close dialogs when the document window loses focus.
merge addon: Compensate for editor top position when aligning lines.
vim bindings: Improve EOL handling.
emacs bindings: Include default keymap as a fallback.
julia mode: Fix an infinite loop bug.
show-hint addon: Scroll cursor into view when picking a completion.
New features
New option: screenReaderLabel
to add a label to the editor.
New mode: wast.
5.52.2
Version 5.52.2
Bug fixes
Fix selection management in contenteditable mode when the editor doesn't have focus.
Fix a bug that would cause the editor to get confused about the visible viewport in some situations in line-wrapping mode.
markdown mode: Don't treat single dashes as setext header markers.
zenburn theme: Make sure background styles take precedence over default styles.
css mode: Recognize a number of new properties.
5.52.0
Version 5.52.0
Bug fixes
Fix a bug in handling of bidi text with Arabic numbers in a right-to-left editor.
Fix a crash when combining file drop with a "beforeChange"
filter.
Prevent issue when passing negative coordinates to scrollTo
.
New features
lint and tern addons: Allow the tooltip to be appended to the editor wrapper element instead of the document body.
5.51.0
Version 5.51.0
Bug fixes
Fix the behavior of the home and end keys when direction
is set to "rtl"
.
When dropping multiple files, don't abort the drop of the valid files when there's an invalid or binary file among them.
Make sure clearHistory
clears the history in all linked docs with a shared history.
vim bindings: Fix behavior of '
and `
marks, fix R
in visual mode.
New features
vim bindings: Support gi
, gI, and
gJ`.
5.50.2
5.50.0
Version 5.50.0
Bug fixes
Make Shift-Delete to cut work on Firefox.
closetag addon: Properly handle self-closing tags.
handlebars mode: Fix triple-brace support.
searchcursor addon: Support mathing $
in reverse regexp search.
panel addon: Don't get confused by changing panel sizes.
javascript-hint addon: Complete variables defined in outer scopes.
sublime bindings: Make by-subword motion more consistent with Sublime Text.
julia mode: Don't break on zero-prefixed integers.
elm mode: Sync with upstream version.
sql mode: Support Postgres-style backslash-escaped string literals.
New features
Add a className
option to addLineWidget
.
foldcode addon: Allow fold widgets to be functions, to dynamically create fold markers.
New themes: ayu-dark and ayu-mirage.
5.49.2
Version 5.49.2
Bug fixes
sublime bindings: Make selectNextOccurrence
stop doing something when all occurrences are selected.
continuecomment addon: Respect indentWithTabs
option.
foldgutter addon: Optimize by reusing DOM when possible.
markdown mode: Don't reset inline styles at the start of a continued list item line.
clike mode: Add a configuration for Objective-C++.
5.49.0
Version 5.49.0
Bug fixes
octave mode: Don't mark common punctuation as error.
clike mode: Support nested comments and properly indent lambdas in Kotlin.
foldgutter and annotatescrollbar addons: Optimize use of setTimeout
/clearTimeout
.
New features
New themes: moxer, material-darker, material-palenight, material-ocean.
xml mode: Provide a more abstract way to query context, which other modes for XML-like languages can also implement.