Releases: codemirror/codemirror5
5.56.0
Version 5.56.0
Bug fixes
Line-wise pasting was fixed on Chrome Windows.
wast mode: Follow standard changes.
soy mode: Support import expressions, template type, and loop indices.
sql-hint addon: Improve handling of double quotes.
New features
show-hint addon: New option scrollMargin
to control how many options are visible beyond the selected one.
hardwrap addon: New option forceBreak
to disable breaking of words that are longer than a line.
5.55.0
Version 5.55.0
Bug fixes
The editor no longer overrides the rendering of zero-width joiners (allowing combined emoji to be shown).
vim bindings: Fix an issue where the vim-mode-change
event was fired twice.
javascript mode: Only allow -->
-style comments at the start of a line.
julia mode: Improve indentation.
pascal mode: Recognize curly bracket comments.
runmode addon: Further sync up the implementation of the standalone and node variants with the regular library.
New features
loadmode addon: Allow overriding the way the addon constructs filenames and loads modules.
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.