CodeMirror releases 4.13 and 5.0

59 views
Skip to first unread message

Marijn Haverbeke

unread,
Feb 20, 2015, 11:56:26 AM2/20/15
to CodeMirror, CodeMirror-announce
Hello CodeMirror users,

I've just tagged releases 4.13 and 5.0. The second includes the new
(still experimental) mobile support.

If you want a safe upgrade, use 4.13. It contains the following changes:

- Fix a bad bug in the closetag addon that would make it impossible to type '/'
- New modes: Forth, Stylus.
- Make the CSS mode understand some modern CSS extensions.
- Have the Scala mode handle symbols and triple-quoted strings.

You can see all patches at
https://github.com/codemirror/CodeMirror/compare/4.12.0...4.13.0
And get the zip file at http://codemirror.net/codemirror-4.13.zip

Version 5.0 adds the possibility to use contentEditable rather than a
hidden textarea as a way to manage input and focus. This is necessary
on mobile, since it is the only way we can get the native selection
interface to show up.

Mobile browsers tested are the iOS browser and Chrome and the stock
browser on recent Android versions. Mobile Firefox is still a work in
progress.

In this version, there is a new option inputStyle to switch between
hidden textarea and contenteditable input. On mobile browsers, the
default is "contenteditable". On desktop browsers, the default is
"textarea", but if IME or screen reader support is important to you,
you might also want to set it to "contenteditable". I very much
appreciate people testing this, both on mobile and desktop.

The only incompatible change is that getInputField method is no longer
guaranteed to return a textarea.

The new patches in 5.0 are
https://github.com/codemirror/CodeMirror/compare/4.13.0...5.0.0
And the zip is at http://codemirror.net/codemirror-5.0.zip

Best,
Marijn
Reply all
Reply to author
Forward
0 new messages