Show More
@@ -390,6 +390,8 b' var IPython = (function (IPython) {' | |||
|
390 | 390 | this.element.focusout(function() { |
|
391 | 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 | 405 | /** @method render **/ |
|
404 | 406 | RawCell.prototype.render = function () { |
|
405 | // Make sure that this cell type can never be rendered | |
|
406 |
if (t |
|
|
407 |
this. |
|
|
407 | var cont = IPython.TextCell.prototype.render.apply(this); | |
|
408 | if (cont){ | |
|
409 | var text = this.get_text(); | |
|
410 | if (text === "") { text = this.placeholder; } | |
|
411 | this.set_text(text); | |
|
408 | 412 | } |
|
409 | var text = this.get_text(); | |
|
410 | if (text === "") { text = this.placeholder; } | |
|
411 | this.set_text(text); | |
|
413 | return cont; | |
|
412 | 414 | }; |
|
413 | 415 | |
|
414 | 416 |
General Comments 0
You need to be logged in to leave comments.
Login now