|
|
|
|
@ -123,7 +123,7 @@ define([
|
|
|
|
|
"Cmd-/" : "toggleComment",
|
|
|
|
|
"Ctrl-/" : "toggleComment"
|
|
|
|
|
},
|
|
|
|
|
mode: 'ipython',
|
|
|
|
|
mode: 'text',
|
|
|
|
|
theme: 'ipython',
|
|
|
|
|
matchBrackets: true,
|
|
|
|
|
autoCloseBrackets: true
|
|
|
|
|
@ -162,7 +162,7 @@ define([
|
|
|
|
|
notebook: this.notebook});
|
|
|
|
|
inner_cell.append(this.celltoolbar.element);
|
|
|
|
|
var input_area = $('<div/>').addClass('input_area');
|
|
|
|
|
this.code_mirror = new CodeMirror(input_area.get(0), this.cm_config);
|
|
|
|
|
this.code_mirror = new CodeMirror(input_area.get(0), this._options.cm_config);
|
|
|
|
|
// In case of bugs that put the keyboard manager into an inconsistent state,
|
|
|
|
|
// ensure KM is enabled when CodeMirror is focused:
|
|
|
|
|
this.code_mirror.on('focus', function () {
|
|
|
|
|
|