CSS
0
Вклад в тег
<div id="code" style="height: 100vh"></div>
var editor = CodeMirror(document.getElementById('code'), {mode: "javascript"});
var editorClass = document.getElementsByClassName("CodeMirror");
for(var i = 0; i < editorClass.length; i++){
editorClass[i].style.height = "100%";
}