We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b099303 + 835bbd1 commit f8d4d6aCopy full SHA for f8d4d6a
notebook/static/edit/js/editor.js
@@ -150,8 +150,10 @@ function(
150
/** set the codemirror mode from a modeinfo struct */
151
var that = this;
152
utils.requireCodeMirrorMode(modeinfo, function () {
153
- that.codemirror.setOption('mode', modeinfo.mode);
+ that.codemirror.setOption('mode', modeinfo.mime);
154
that.events.trigger("mode_changed.Editor", modeinfo);
155
+ }, function(err) {
156
+ console.log('Error getting CodeMirror mode: ' + err);
157
});
158
};
159
0 commit comments