Latest release


@marijnh marijnh released this Dec 20, 2016 · 31 commits to master since this release

Version 5.22.0

Bug fixes

sublime bindings: Make selectBetweenBrackets work with multiple cursors.

javascript mode: Fix issues with parsing complex TypeScript types, imports, and exports.

A contentEditable editor instance with autofocus enabled no longer crashes during initializing.

New features

emacs bindings: Export CodeMirror.emacs to allow other addons to hook into Emacs-style functionality.

active-line addon: Add nonEmpty option.

New event: optionChange.



@marijnh marijnh released this Nov 21, 2016 · 68 commits to master since this release

Release 5.21.0

Bug fixes

Tapping/clicking the editor in contentEditable mode on Chrome now puts the cursor at the tapped position.

Fix various crashes and misbehaviors when reading composition events in contentEditable mode.

Catches and ignores an IE 'Unspecified Error' when creating an editor in an iframe before there is a <body>.

merge addon: Fix several issues in the chunk-aligning feature.

verilog mode: Rewritten to address various issues.

julia mode: Recognize Julia 0.5 syntax.

swift mode: Various fixes and adjustments to current syntax.

markdown mode: Allow lists without a blank line above them.

New features

The setGutterMarker, clearGutter, and lineInfo methods are now available on Doc objects.

The heightAtLine method now takes an extra argument to allow finding the height at the top of the line's line widgets.

ruby mode: else and elsif are now immediately indented.

vim bindings: Bind Ctrl-T and Ctrl-D to in- and dedent in insert mode.



@marijnh marijnh released this Oct 21, 2016 · 106 commits to master since this release

Release 5.20.2

Bug fixes

Fix CodeMirror.version returning the wrong version number.



@marijnh marijnh released this Oct 20, 2016 · 111 commits to master since this release

Release 5.20.0

Bug fixes

Make newlineAndIndent command work with multiple cursors on the same line.

Make sure keypress events for backspace are ignored.

Tokens styled with overlays no longer get a nonsense cm-cm-overlay class.

Line endings for pasted content are now normalized to the editor's preferred ending.

javascript mode: Improve support for class expressions. Support TypeScript optional class properties, the abstract keyword, and return type declarations for arrow functions.

css mode: Fix highlighting of mixed-case keywords.

closebrackets addon: Improve behavior when typing a quote before a string.

New features

The core is now maintained as a number of small files, using ES6 syntax and modules, under the src/ directory. A git checkout no longer contains a working codemirror.js until you npm build (but when installing from NPM, it is included).

The refresh event is now documented and stable.



@marijnh marijnh released this Sep 20, 2016 · 179 commits to master since this release

Release 5.19.0


erlang mode: Fix mode crash when trying to read an empty context.

comment addon: Fix broken behavior when toggling comments inside a comment.

xml-fold addon: Fix a null-dereference bug.

Page up and page down now do something even in single-line documents.

Fix an issue where the cursor position could be off in really long (~8000 character) tokens.

New features

javascript mode: Better indentation when semicolons are missing. Better support for TypeScript classes, optional parameters, and the type keyword.

The blur and focus events now pass the DOM event to their handlers.



@marijnh marijnh released this Aug 23, 2016 · 201 commits to master since this release

Release 5.18.2


vue mode: Fix outdated references to renamed Pug mode dependency.



@marijnh marijnh released this Aug 22, 2016 · 204 commits to master since this release

Version 5.18.0


Make sure gutter backgrounds stick to the rest of the gutter during horizontal scrolling.

The contenteditable inputStyle now properly supports pasting on pre-Edge IE versions.

javascript mode: Fix some small parsing bugs and improve TypeScript support.

matchbrackets addon: Fix bug where active highlighting was left in editor when the addon was disabled.

match-highlighter addon: Only start highlighting things when the editor gains focus.

javascript-hint addon: Also complete non-enumerable properties.

New features

The addOverlay method now supports a priority option to control the order in which overlays are applied.

MIME types that end in +json now default to the JSON mode when the MIME itself is not defined.

Breaking changes

The mode formerly known as Jade was renamed to Pug.

The Python mode now defaults to Python 3 (rather than 2) syntax.



@marijnh marijnh released this Jul 19, 2016 · 248 commits to master since this release

Release 5.17.0


Fix problem with wrapped trailing whitespace displaying incorrectly.

Prevent IME dialog from overlapping typed content in Chrome.

Improve measuring of characters near a line wrap.

javascript mode: Improve support for async, allow trailing commas in import lists.

vim bindings: Fix backspace in replace mode.

sublime bindings: Fix some key bindings on OS X to match Sublime Text.

New features

markdown mode: Add more classes to image links in highlight-formatting mode.



@marijnh marijnh released this Jun 20, 2016 · 271 commits to master since this release

Release 5.16.0


Fix glitches when dragging content caused by the drop indicator receiving mouse events.

Make Control-drag work on Firefox.

Make clicking or selection-dragging at the end of a wrapped line select the right position.

show-hint addon: Prevent widget scrollbar from hiding part of the hint text.

rulers addon: Prevent rulers from forcing a horizontal editor scrollbar.

New features

search addon: Automatically bind search-related keys in persistent dialog.

sublime keymap: Add a multi-cursor aware smart backspace binding.