Fixes to codemirror module.