CodeMirror 2.35 发布了,主要改进包括:
- New (sub) mode: TypeScript.
- Don't overwrite (insert key) when pasing.
- Fix several bugs in
markText
/undo interaction. - Better indentation of JavaScript code without semicolons.
- Add
defineInitHook
function. - Full list of patches.
同时发布的还有 3.0 Beta 2 版本,改进记录:
- Fix page-based coordinate computation.
- Fix firing of
gutterClick
event. - Add
cursorHeight
option. - Fix bi-directional text regression.
- Add
viewportMargin
option. - Directly handle mousewheel events (again, hopefully better).
- Make vertical cursor movement more robust (through widgets, big line gaps).
- Add
flattenSpans
option. - Initialization in hidden state works again.
- Many optimizations. Poor responsiveness should be fixed.
- Full list of patches.
CodeMirror 是一款“Online Source Editor”,基于Javascript,短小精悍,实时在线代码高亮显示,他不是某个富文本编辑器的附属产品,他是许多大名鼎鼎的在线代码编辑器的基础库。