##// END OF EJS Templates
store default codemirror mode in only 1 place
Matthias BUSSONNIER -
Show More
@@ -322,8 +322,8 var IPython = (function (IPython) {
322 322 }
323 323 }
324 324 }
325 // fallback on default (python)
326 var default_mode = this.default_mode || 'text/plain';
325 // fallback on default
326 var default_mode = this._options.cm_config.mode || 'text/plain';
327 327 this.code_mirror.setOption('mode', default_mode);
328 328 };
329 329
@@ -65,7 +65,6 var IPython = (function (IPython) {
65 65 this.code_mirror = null;
66 66 this.input_prompt_number = null;
67 67 this.collapsed = false;
68 this.default_mode = 'ipython';
69 68 this.cell_type = "code";
70 69
71 70
General Comments 0
You need to be logged in to leave comments. Login now