This is the first release in which the core is split into smaller files. But note that consumers of the NPM package shouldn’t notice any difference due to this.
NOTE: If you’re using Bower, which confuses git repositories with published packages, you will have a bad time. Still waiting for someone to set up a bower-compatible package somewhere that I can point people at. Lock your dependency to 5.19 in the meantime, or, and this is probably the preferable solution, stop using Bower.
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.