Repository navigation
Tags
Tags
Version 5.44.0 ### Bug fixes Fix issue where lines that only contained a zero-height widget got assigned an invalid height. Improve support for middle-click paste on X Windows. Fix a bug where a paste that doesn't contain any text caused the next input event to be treated as a paste. [show-hint addon](https://codemirror.net/doc/manual.html#addon_show-hint): Fix accidental global variable. [javascript mode](https://codemirror.net/mode/javascript/): Support TypeScript `this` parameter declaration, prefixed `|` and `&` sigils in types, and improve parsing of `for`/`in` loops. ### New features [vim bindings](https://codemirror.net/demo/vim.html): Properly emulate forward-delete. New theme: [nord](https://codemirror.net/demo/theme.html#nord).
Version 5.43.0 ### Bug fixes Fix mistakes in passing through the arguments to `indent` in several wrapping modes. [javascript mode](https://codemirror.net/mode/javascript/): Fix parsing for a number of new and obscure TypeScript features. [ruby mode](https://codemirror.net/mode/ruby): Support indented end tokens for heredoc strings. ### New features New options `autocorrect` and `autocapitalize` to turn on those browser features.
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](https://codemirror.net/demo/vim.html): Make it possible to select text between angle brackets. [css mode](https://codemirror.net/mode/css/): Fix tokenizing of CSS variables. [python mode](https://codemirror.net/mode/python/): Fix another bug in tokenizing of format strings. [soy mode](https://codemirror.net/mode/soy/): More accurate highlighting.
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](https://codemirror.net/doc/manual.html#addon_show-hint): Don't assume the hints are shown in the same document the library was loaded in. [python mode](https://codemirror.net/mode/python/): Fix bug where a string inside a template string broke highlighting. [swift mode](https://codemirror.net/mode/swift): Support multi-line strings. ### New features The [`markText` method](https://codemirror.net/doc/manual.html#markText) now takes an [`attributes`](https://codemirror.net/doc/manual.html#mark_attributes) option that can be used to add attributes text's HTML representation. [vim bindings](https://codemirror.net/demo/vim.html): Add support for the `=` binding.
Version 5.41.0 ### Bug fixes Fix firing of [`"gutterContextMenu"`](https://codemirror.net/doc/manual.html#event_gutterContextMenu) event on Firefox. Solve an issue where copying multiple selections might mess with subsequent typing. Don't crash when [`endOperation`](https://codemirror.net/doc/manual.html#endOperation) is called with no operation active. [vim bindings](https://codemirror.net/demo/vim.html): Fix insert mode repeat after visualBlock edits. [scheme mode](https://codemirror.net/mode/scheme/index.html): Improve highlighting of quoted expressions. [soy mode](https://codemirror.net/mode/soy/): Support injected data and `@param` in comments. [objective c mode](https://codemirror.net/mode/clike/): Improve conformance to the actual language. ### New features A new [`selectionsMayTouch`](https://codemirror.net/doc/manual.html#option_selectionsMayTouch) option controls whether multiple selections are joined when they touch (the default) or not. [vim bindings](https://codemirror.net/demo/vim.html): Add `noremap` binding command.
Version 5.40.2 ### Bug fixes Fix firing of `gutterContextMenu` event on Firefox. Add `hintWords` (basic completion) helper to [clojure](https://codemirror.net/mode/clojure/index.html), [mllike](https://codemirror.net/mode/mllike/index.html), [julia](https://codemirror.net/mode/julia/), [shell](https://codemirror.net/mode/shell/), and [r](https://codemirror.net/mode/r/) modes. [clojure mode](https://codemirror.net/mode/clojure/index.html): Clean up and improve.
Version 5.40.0 ### Bug fixes [closebrackets addon](https://codemirror.net/doc/manual.html#addon_closebrackets): Fix issue where bracket-closing wouldn't work before punctuation. [panel addon](https://codemirror.net/doc/manual.html#addon_panel): Fix problem where replacing the last remaining panel dropped the newly added panel. [hardwrap addon](https://codemirror.net/doc/manual.html#addon_hardwrap): Fix an infinite loop when the indention is greater than the target column. [jinja2](https://codemirror.net/mode/jinja2/) and [markdown](https://codemirror.net/mode/markdown/) modes: Add comment metadata. ### New features New method [`phrase`](https://codemirror.net/doc/manual.html#phrase) and option [`phrases`](https://codemirror.net/doc/manual.html#option_phrases) to make translating UI text in addons easier.
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](http://codemirror.net/doc/manual.html#addon_show-hint): Fix behavior when backspacing to the start of the line with completions open.
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](http://codemirror.net/mode/markdown/): Improve handling of blank lines in HTML tags. ### New features [stex mode](http://codemirror.net/mode/stex/): Add an `inMathMode` option to start the mode in math mode.
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](http://codemirror.net/mode/javascript/): Support block scopes, bindingless catch, bignum suffix, `s` regexp flag. [markdown mode](http://codemirror.net/mode/markdown/): Adjust a wasteful regexp. [show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Allow opening the control without any item selected. ### New features New theme: [darcula](http://codemirror.net/demo/theme.html#darcula). [dialog addon](http://codemirror.net/doc/manual.html#addon_dialog): Add a CSS class (`dialog-opened`) to the editor when a dialog is open.
PreviousNext