mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
fixup
This commit is contained in:
parent
0c42d3659e
commit
54324633ca
@ -47,7 +47,7 @@ function($,
|
||||
Editor.default_codemirror_options,
|
||||
cfg.codemirror_options || {}
|
||||
);
|
||||
that.set_codemirror_options(cmopts, false);
|
||||
that._set_codemirror_options(cmopts);
|
||||
that.events.trigger('config_changed.Editor', {config: that.config});
|
||||
});
|
||||
};
|
||||
@ -113,6 +113,10 @@ function($,
|
||||
Editor.prototype._set_codemirror_options = function (options) {
|
||||
// update codemirror options from a dict
|
||||
for (var opt in options) {
|
||||
if (!options.hasOwnProperty(opt)) {
|
||||
continue;
|
||||
}
|
||||
console.log(opt, options[opt]);
|
||||
this.codemirror.setOption(opt, options[opt]);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user