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