##// END OF EJS Templates
render on focus out, always pad raw cells
Paul Ivanov -
Show More
@@ -389,6 +389,7 b' var IPython = (function (IPython) {'
389 var that = this;
389 var that = this;
390 this.element.focusout(function() {
390 this.element.focusout(function() {
391 that.auto_highlight();
391 that.auto_highlight();
392 that.render();
392 });
393 });
393
394
394 this.code_mirror.on('focus', function() { that.unrender(); });
395 this.code_mirror.on('focus', function() { that.unrender(); });
@@ -409,6 +410,7 b' var IPython = (function (IPython) {'
409 var text = this.get_text();
410 var text = this.get_text();
410 if (text === "") { text = this.placeholder; }
411 if (text === "") { text = this.placeholder; }
411 this.set_text(text);
412 this.set_text(text);
413 this.element.removeClass('rendered');
412 }
414 }
413 return cont;
415 return cont;
414 };
416 };
General Comments 0
You need to be logged in to leave comments. Login now