Show More
@@ -323,8 +323,13 b' var IPython = (function (IPython) {' | |||
|
323 | 323 | } |
|
324 | 324 | } |
|
325 | 325 | } |
|
326 |
// fallback on default |
|
|
327 | var default_mode = this.default_mode || 'text/plain'; | |
|
326 | // fallback on default | |
|
327 | var default_mode | |
|
328 | try { | |
|
329 | default_mode = this._options.cm_config.mode; | |
|
330 | } catch(e) { | |
|
331 | default_mode = 'text/plain'; | |
|
332 | } | |
|
328 | 333 | this.code_mirror.setOption('mode', default_mode); |
|
329 | 334 | }; |
|
330 | 335 |
General Comments 0
You need to be logged in to leave comments.
Login now