Revert: editors
This commit is contained in:
parent
4d6f856473
commit
dc988a413e
|
@ -152,7 +152,7 @@ function updateLinter({immediately} = {}) {
|
||||||
function updateEditors() {
|
function updateEditors() {
|
||||||
CodeMirror.defaults.lint = linterConfig.getForCodeMirror(linter);
|
CodeMirror.defaults.lint = linterConfig.getForCodeMirror(linter);
|
||||||
const guttersOption = prepareGuttersOption();
|
const guttersOption = prepareGuttersOption();
|
||||||
$$('#sections .CodeMirror').map(e => e.CodeMirror).forEach(cm => {
|
editors.forEach(cm => {
|
||||||
cm.setOption('lint', CodeMirror.defaults.lint);
|
cm.setOption('lint', CodeMirror.defaults.lint);
|
||||||
if (guttersOption) {
|
if (guttersOption) {
|
||||||
cm.setOption('guttersOption', guttersOption);
|
cm.setOption('guttersOption', guttersOption);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user