## 5.16.0 (2016-06-20) ### Bugfixes 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](http://codemirror.net/doc/manual.html#addon_show-hint): Prevent widget scrollbar from hiding part of the hint text. [rulers addon](http://codemirror.net/doc/manual.html#addon_rulers): Prevent rulers from forcing a horizontal editor scrollbar. ### New features [search addon](http://codemirror.net/doc/manual.html#addon_search): Automatically bind search-related keys in persistent dialog. [sublime keymap](http://codemirror.net/demo/sublime.html): Add a multi-cursor aware smart backspace binding. ## 5.15.2 (2016-05-20) ### Bugfixes Fix a critical document corruption bug that occurs when a document is gradually grown. ## 5.15.0 (2016-05-20) ### Bugfixes Fix bug that caused the selection to reset when focusing the editor in contentEditable input mode. Fix issue where not all ASCII control characters were being replaced by placeholders. Remove the assumption that all modes have a `startState` method from several wrapping modes. Fix issue where the editor would complain about overlapping collapsed ranges when there weren't any. Optimize document tree building when loading or pasting huge chunks of content. [markdown mode](http://codemirror.net/mode/markdown/): Fix several issues in matching link targets. [clike mode](http://codemirror.net/mode/clike/): Improve indentation of C++ template declarations. ### New features Explicitly bind Ctrl-O on OS X to make that binding (“open line”) act as expected. Pasting [linewise-copied](http://codemirror.net/doc/manual.html#option_lineWiseCopyCut) content when there is no selection now inserts the lines above the current line. [javascript mode](http://codemirror.net/mode/javascript/): Support `async`/`await` and improve support for TypeScript type syntax. ## 5.14.2 (2016-04-20) ### Bugfixes Push a new package to NPM due to an [NPM bug](https://github.com/npm/npm/issues/5082) omitting the LICENSE file in 5.14.0. Set `dataTransfer.effectAllowed` in `dragstart` handler to help browsers use the right drag icon. Add the [mbox mode](http://codemirror.net/mode/mbox/index.html) to `mode/meta.js`. ## 5.14.0 (2016-04-20) ### Bugfixes [`posFromIndex`](http://codemirror.net/doc/manual.html#posFromIndex) and [`indexFromPos`](http://codemirror.net/doc/manual.html#indexFromPos) now take [`lineSeparator`](http://codemirror.net/doc/manual.html#option_lineSeparator) into account. [vim bindings](http://codemirror.net/demo/vim.html): Only call `.save()` when it is actually available. [comment addon](http://codemirror.net/doc/manual.html#addon_comment): Be careful not to mangle multi-line strings. [Python mode](http://codemirror.net/mode/python/index.html): Improve distinguishing of decorators from `@` operators. [`findMarks`](http://codemirror.net/doc/manual.html#findMarks): No longer return marks that touch but don't overlap given range. ### New features [vim bindings](http://codemirror.net/demo/vim.html): Add yank command. [match-highlighter addon](http://codemirror.net/doc/manual.html#addon_match-highlighter): Add `trim` option to disable ignoring of whitespace. [PowerShell mode](http://codemirror.net/mode/powershell/index.html): Added. [Yacas mode](http://codemirror.net/mode/yacas/index.html): Added. [Web IDL mode](http://codemirror.net/mode/webidl/index.html): Added. [SAS mode](http://codemirror.net/mode/sas/index.html): Added. [mbox mode](http://codemirror.net/mode/mbox/index.html): Added. ## 5.13.2 (2016-03-23) ### Bugfixes Solves a problem where the gutter would sometimes not extend all the way to the end of the document. ## 5.13.0 (2016-03-21) ### New features New DOM event forwarded: [`"dragleave"`](http://codemirror.net/doc/manual.html#event_dom). [protobuf mode](http://codemirror.net/mode/protobuf/index.html): Newly added. ### Bugfixes Fix problem where [`findMarks`](http://codemirror.net/doc/manual.html#findMarks) sometimes failed to find multi-line marks. Fix crash that showed up when atomic ranges and bidi text were combined. [show-hint addon](http://codemirror.net/demo/complete.html): Completion widgets no longer close when the line indented or dedented. [merge addon](http://codemirror.net/demo/merge.html): Fix bug when merging chunks at the end of the file. [placeholder addon](http://codemirror.net/doc/manual.html#addon_placeholder): No longer gets confused by [`swapDoc`](http://codemirror.net/doc/manual.html#swapDoc). [simplescrollbars addon](http://codemirror.net/doc/manual.html#addon_simplescrollbars): Fix invalid state when deleting at end of document. [clike mode](http://codemirror.net/mode/clike/index.html): No longer gets confused when a comment starts after an operator. [markdown mode](http://codemirror.net/mode/markdown/index.html): Now supports CommonMark-style flexible list indentation. [dylan mode](http://codemirror.net/mode/dylan/index.html): Several improvements and fixes. ## 5.12.0 (2016-02-19) ### New features [Vim bindings](http://codemirror.net/demo/vim.html): Ctrl-Q is now an alias for Ctrl-V. [Vim bindings](http://codemirror.net/demo/vim.html): The Vim API now exposes an `unmap` method to unmap bindings. [active-line addon](http://codemirror.net/demo/activeline.html): This addon can now style the active line's gutter. [FCL mode](http://codemirror.net/mode/fcl/): Newly added. [SQL mode](http://codemirror.net/mode/sql/): Now has a Postgresql dialect. ### Bugfixes Fix [issue](https://github.com/codemirror/CodeMirror/issues/3781) where trying to scroll to a horizontal position outside of the document's width could cause the gutter to be positioned incorrectly. Use absolute, rather than fixed positioning in the context-menu intercept hack, to work around a [problem](https://github.com/codemirror/CodeMirror/issues/3238) when the editor is inside a transformed parent container. Solve a [problem](https://github.com/codemirror/CodeMirror/issues/3821) where the horizontal scrollbar could hide text in Firefox. Fix a [bug](https://github.com/codemirror/CodeMirror/issues/3834) that caused phantom scroll space under the text in some situations. [Sublime Text bindings](http://codemirror.net/demo/sublime.html): Bind delete-line to Shift-Ctrl-K on OS X. [Markdown mode](http://codemirror.net/mode/markdown/): Fix [issue](https://github.com/codemirror/CodeMirror/issues/3787) where the mode would keep state related to fenced code blocks in an unsafe way, leading to occasional corrupted parses. [Markdown mode](http://codemirror.net/mode/markdown/): Ignore backslashes in code fragments. [Markdown mode](http://codemirror.net/mode/markdown/): Use whichever mode is registered as `text/html` to parse HTML. [Clike mode](http://codemirror.net/mode/clike/): Improve indentation of Scala `=>` functions. [Python mode](http://codemirror.net/mode/python/): Improve indentation of bracketed code. [HTMLMixed mode](http://codemirror.net/mode/htmlmixed/): Support multi-line opening tags for sub-languages (`