##// END OF EJS Templates
Merge pull request #5310 from ivanov/fix-5238...
Min RK -
r15864:808ea631 merge
parent child Browse files
Show More
@@ -281,8 +281,8 b' var IPython = (function (IPython) {'
281 281 };
282 282
283 283 RawCell.options_default = {
284 placeholder : "Write raw LaTeX or other formats here, for use with nbconvert.\n" +
285 "It will not be rendered in the notebook.\n" +
284 placeholder : "Write raw LaTeX or other formats here, for use with nbconvert. " +
285 "It will not be rendered in the notebook. " +
286 286 "When passing through nbconvert, a Raw Cell's content is added to the output unmodified."
287 287 };
288 288
@@ -294,7 +294,10 b' var IPython = (function (IPython) {'
294 294 var that = this;
295 295 this.element.focusout(function() {
296 296 that.auto_highlight();
297 that.render();
297 298 });
299
300 this.code_mirror.on('focus', function() { that.unrender(); });
298 301 };
299 302
300 303 /**
@@ -307,13 +310,14 b' var IPython = (function (IPython) {'
307 310
308 311 /** @method render **/
309 312 RawCell.prototype.render = function () {
310 // Make sure that this cell type can never be rendered
311 if (this.rendered) {
312 this.unrender();
313 var cont = IPython.TextCell.prototype.render.apply(this);
314 if (cont){
315 var text = this.get_text();
316 if (text === "") { text = this.placeholder; }
317 this.set_text(text);
318 this.element.removeClass('rendered');
313 319 }
314 var text = this.get_text();
315 if (text === "") { text = this.placeholder; }
316 this.set_text(text);
320 return cont;
317 321 };
318 322
319 323
General Comments 0
You need to be logged in to leave comments. Login now