Show More
@@ -100,7 +100,7 b' var IPython = (function (IPython) {' | |||||
100 | }; |
|
100 | }; | |
101 |
|
101 | |||
102 |
|
102 | |||
103 |
TextCell.prototype.get_rendered = function( |
|
103 | TextCell.prototype.get_rendered = function() { | |
104 | return this.element.find('div.text_cell_render').html(); |
|
104 | return this.element.find('div.text_cell_render').html(); | |
105 | }; |
|
105 | }; | |
106 |
|
106 | |||
@@ -129,13 +129,16 b' var IPython = (function (IPython) {' | |||||
129 |
|
129 | |||
130 |
|
130 | |||
131 | TextCell.prototype.fromJSON = function (data) { |
|
131 | TextCell.prototype.fromJSON = function (data) { | |
|
132 | console.log(data); | |||
132 | if (data.cell_type === this.cell_type) { |
|
133 | if (data.cell_type === this.cell_type) { | |
133 | if (data.source !== undefined) { |
|
134 | if (data.source !== undefined) { | |
134 | this.set_source(data.source); |
|
135 | this.set_source(data.source); | |
135 | this.set_rendered(data.rendered); |
|
136 | this.set_rendered(data.rendered || ''); | |
|
137 | this.rendered = false; | |||
|
138 | this.render(); | |||
136 | }; |
|
139 | }; | |
137 | }; |
|
140 | }; | |
138 | } |
|
141 | }; | |
139 |
|
142 | |||
140 |
|
143 | |||
141 | TextCell.prototype.toJSON = function () { |
|
144 | TextCell.prototype.toJSON = function () { |
General Comments 0
You need to be logged in to leave comments.
Login now