Skip to content

Releases: codemirror/codemirror5

5.42.2

21 Dec 10:38
5.42.2
Compare
Choose a tag to compare

Version 5.42.2

Bug fixes

Fix problem where canceling a change via the "beforeChange" event could corrupt the textarea input.

Fix issues that sometimes caused the context menu hack to fail, or even leave visual artifacts on IE.

vim bindings: Make it possible to select text between angle brackets.

css mode: Fix tokenizing of CSS variables.

python mode: Fix another bug in tokenizing of format strings.

soy mode: More accurate highlighting.

5.42.0

20 Nov 13:32
5.42.0
Compare
Choose a tag to compare

Version 5.42.0

Bug fixes

Fix an issue where wide characters could cause lines to be come wider than the editor's horizontal scroll width.

Optimize handling of window resize events.

show-hint addon: Don't assume the hints are shown in the same document the library was loaded in.

python mode: Fix bug where a string inside a template string broke highlighting.

swift mode: Support multi-line strings.

New features

The markText method now takes an attributes option that can be used to add attributes text's HTML representation.

vim bindings: Add support for the = binding.

5.41.0

25 Oct 10:17
5.41.0
Compare
Choose a tag to compare

Version 5.41.0

Bug fixes

Fix firing of "gutterContextMenu" event on Firefox.

Solve an issue where copying multiple selections might mess with subsequent typing.

Don't crash when endOperation is called with no operation active.

vim bindings: Fix insert mode repeat after visualBlock edits.

scheme mode: Improve highlighting of quoted expressions.

soy mode: Support injected data and @param in comments.

objective c mode: Improve conformance to the actual language.

New features

A new selectionsMayTouch option controls whether multiple selections are joined when they touch (the default) or not.

vim bindings: Add noremap binding command.

5.40.2

20 Sep 13:24
5.40.2
Compare
Choose a tag to compare

Version 5.40.2

Bug fixes

Fix firing of gutterContextMenu event on Firefox.

Add hintWords (basic completion) helper to clojure, mllike, julia, shell, and r modes.

clojure mode: Clean up and improve.

5.40.0

25 Aug 07:15
5.40.0
Compare
Choose a tag to compare

Version 5.40.0

Bug fixes

closebrackets addon: Fix issue where bracket-closing wouldn't work before punctuation.

panel addon: Fix problem where replacing the last remaining panel dropped the newly added panel.

hardwrap addon: Fix an infinite loop when the indention is greater than the target column.

jinja2 and markdown modes: Add comment metadata.

New features

New method phrase and option phrases to make translating UI text in addons easier.

5.39.2

20 Jul 16:20
5.39.2
Compare
Choose a tag to compare

Version 5.39.2

Bug fixes

Fix issue where when you pass the document as a Doc instance to the CodeMirror constructor, the mode option was ignored.

Fix bug where line height could be computed wrong with a line widget below a collapsed line.

Fix overeager .npmignore dropping the bin/source-highlight utility from the distribution.

show-hint addon: Fix behavior when backspacing to the start of the line with completions open.

5.39.0

20 Jun 06:40
5.39.0
Compare
Choose a tag to compare

Version 3.39.0

Bug fixes

Fix issue that in some circumstances caused content to be clipped off at the bottom after a resize.

markdown mode: Improve handling of blank lines in HTML tags.

New features

stex mode: Add an inMathMode option to start the mode in math mode.

5.38.0

22 May 10:37
5.38.0
Compare
Choose a tag to compare

Version 5.38.0

Bug fixes

Improve reliability of noticing a missing mouseup event during dragging.

Make sure getSelection is always called on the correct document.

Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode.

Work around some browsers inexplicably making the fake scrollbars focusable.

Make sure coordsChar doesn't return positions inside collapsed ranges.

javascript mode: Support block scopes, bindingless catch, bignum suffix, s regexp flag.

markdown mode: Adjust a wasteful regexp.

show-hint addon: Allow opening the control without any item selected.

New features

New theme: darcula.

dialog addon: Add a CSS class (dialog-opened) to the editor when a dialog is open.

5.37.0

20 Apr 09:38
5.37.0
Compare
Choose a tag to compare

Version 5.37.0

Bug fixes

Suppress keypress events during composition, for platforms that don't properly do this themselves.

xml-fold addon: Improve handling of line-wrapped opening tags.

javascript mode: Improve TypeScript support.

python mode: Highlight expressions inside format strings.

New features

vim bindings: Add support for '(' and ')' movement.

New themes: idea, ssms, gruvbox-dark.

5.36.0

20 Mar 16:33
5.36.0
Compare
Choose a tag to compare

Version 5.36.0

Bug fixes

Make sure all document-level event handlers are registered on the document that the editor is part of.

Fix issue that prevented edits whose origin starts with + from being combined in history events for an editor-less document.

multiplex addon: Improve handling of indentation.

merge addon: Use CSS :after element to style the scroll-lock icon.

javascript-hint addon: Don't provide completions in JSON mode.

continuelist addon: Fix numbering error.

show-hint addon: Make fromList completion strategy act on the current token up to the cursor, rather than the entire token.

markdown mode: Fix a regexp with potentially exponental complexity.

New features

New theme: lucario.