mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fixed text cell rendering bug.
This commit is contained in:
parent
a70cbfc382
commit
217616a505
@ -100,7 +100,7 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
|
||||
TextCell.prototype.get_rendered = function(text) {
|
||||
TextCell.prototype.get_rendered = function() {
|
||||
return this.element.find('div.text_cell_render').html();
|
||||
};
|
||||
|
||||
@ -129,13 +129,16 @@ var IPython = (function (IPython) {
|
||||
|
||||
|
||||
TextCell.prototype.fromJSON = function (data) {
|
||||
console.log(data);
|
||||
if (data.cell_type === this.cell_type) {
|
||||
if (data.source !== undefined) {
|
||||
this.set_source(data.source);
|
||||
this.set_rendered(data.rendered);
|
||||
this.set_rendered(data.rendered || '');
|
||||
this.rendered = false;
|
||||
this.render();
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
TextCell.prototype.toJSON = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user