update CodeMirror to 3.24

to be backported to 2.1
Merge pull request #5797 from minrk/cm-3.24

update CodeMirror to 3.24