From 55ddc957e186b187a77e22a82f6c9532a607ec18 2014-03-19 17:37:59 From: Paul Ivanov Date: 2014-03-19 17:37:59 Subject: [PATCH] render on focus out, always pad raw cells --- diff --git a/IPython/html/static/notebook/js/textcell.js b/IPython/html/static/notebook/js/textcell.js index f44affc..8dc1d55 100644 --- a/IPython/html/static/notebook/js/textcell.js +++ b/IPython/html/static/notebook/js/textcell.js @@ -389,6 +389,7 @@ var IPython = (function (IPython) { var that = this; this.element.focusout(function() { that.auto_highlight(); + that.render(); }); this.code_mirror.on('focus', function() { that.unrender(); }); @@ -409,6 +410,7 @@ var IPython = (function (IPython) { var text = this.get_text(); if (text === "") { text = this.placeholder; } this.set_text(text); + this.element.removeClass('rendered'); } return cont; };