A misuse of requirejs fixed. Now codemirror works without any modification on the library