Add deprecation warning for global CodeMirror the first time it's called from a given location

@dangoor