create code box in write-new-style editor immediately
This commit is contained in:
parent
0189ae1d64
commit
799108e880
13
edit/edit.js
13
edit/edit.js
|
@ -1242,14 +1242,11 @@ function init() {
|
|||
section[CssToProperty[i]] = [params[i]];
|
||||
}
|
||||
}
|
||||
window.onload = () => {
|
||||
window.onload = null;
|
||||
addSection(null, section);
|
||||
editors[0].setOption('lint', CodeMirror.defaults.lint);
|
||||
// default to enabled
|
||||
$('#enabled').checked = true;
|
||||
initHooks();
|
||||
};
|
||||
addSection(null, section);
|
||||
editors[0].setOption('lint', CodeMirror.defaults.lint);
|
||||
// default to enabled
|
||||
$('#enabled').checked = true;
|
||||
initHooks();
|
||||
return;
|
||||
}
|
||||
// This is an edit
|
||||
|
|
Loading…
Reference in New Issue
Block a user