create code box in write-new-style editor immediately

This commit is contained in:
tophf 2017-08-30 01:30:45 +03:00
parent 562998e4b2
commit d3ed4ced92

View File

@ -1212,14 +1212,11 @@ function init() {
section[CssToProperty[i]] = [params[i]]; section[CssToProperty[i]] = [params[i]];
} }
} }
window.onload = () => { addSection(null, section);
window.onload = null; editors[0].setOption('lint', CodeMirror.defaults.lint);
addSection(null, section); // default to enabled
editors[0].setOption('lint', CodeMirror.defaults.lint); $('#enabled').checked = true;
// default to enabled initHooks();
$('#enabled').checked = true;
initHooks();
};
return; return;
} }
// This is an edit // This is an edit