Code miroir obtient la valeur de DOM

var editor = document.querySelector('.CodeMirror').CodeMirror;
Friendly Hawk