Show More
@@ -390,6 +390,8 b' var IPython = (function (IPython) {' | |||||
390 | this.element.focusout(function() { |
|
390 | this.element.focusout(function() { | |
391 | that.auto_highlight(); |
|
391 | that.auto_highlight(); | |
392 | }); |
|
392 | }); | |
|
393 | ||||
|
394 | this.code_mirror.on('focus', function() { that.unrender(); }); | |||
393 | }; |
|
395 | }; | |
394 |
|
396 | |||
395 | /** |
|
397 | /** | |
@@ -402,13 +404,13 b' var IPython = (function (IPython) {' | |||||
402 |
|
404 | |||
403 | /** @method render **/ |
|
405 | /** @method render **/ | |
404 | RawCell.prototype.render = function () { |
|
406 | RawCell.prototype.render = function () { | |
405 | // Make sure that this cell type can never be rendered |
|
407 | var cont = IPython.TextCell.prototype.render.apply(this); | |
406 |
if (t |
|
408 | if (cont){ | |
407 | this.unrender(); |
|
|||
408 | } |
|
|||
409 | var text = this.get_text(); |
|
409 | var text = this.get_text(); | |
410 | if (text === "") { text = this.placeholder; } |
|
410 | if (text === "") { text = this.placeholder; } | |
411 | this.set_text(text); |
|
411 | this.set_text(text); | |
|
412 | } | |||
|
413 | return cont; | |||
412 | }; |
|
414 | }; | |
413 |
|
415 | |||
414 |
|
416 |
General Comments 0
You need to be logged in to leave comments.
Login now