Unpatch/Monkey patch CM

Move from patch to monkey patch CodeMirror. 

Should help into making it a "component".