I actually thought we finally ditched CodeMirror, oh well it seems it does more harm than good in this case, I think I'll use the legacy editor for most tasks then.