|
|
|
|
@ -65,6 +65,13 @@ var IPython = (function (IPython) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextCell.prototype.unselect = function() {
|
|
|
|
|
// render on selection of another cell
|
|
|
|
|
this.render();
|
|
|
|
|
IPython.Cell.prototype.unselect.apply(this);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextCell.prototype.edit = function () {
|
|
|
|
|
if ( this.read_only ) return;
|
|
|
|
|
if (this.rendered === true) {
|
|
|
|
|
@ -91,11 +98,8 @@ var IPython = (function (IPython) {
|
|
|
|
|
var that = this;
|
|
|
|
|
text_cell.dblclick(function () {
|
|
|
|
|
that.edit();
|
|
|
|
|
}).focusout(function () {
|
|
|
|
|
that.render();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
text_cell.trigger("focusout");
|
|
|
|
|
that.render();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|