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