Show More
@@ -1163,16 +1163,18 b' var IPython = (function (IPython) {' | |||
|
1163 | 1163 | var texta = cell.get_pre_cursor(); |
|
1164 | 1164 | var textb = cell.get_post_cursor(); |
|
1165 | 1165 | if (cell instanceof IPython.CodeCell) { |
|
1166 |
cell.set_text(text |
|
|
1167 |
var new_cell = this.insert_cell_ |
|
|
1168 |
new_cell.set_text(text |
|
|
1166 | cell.set_text(textb); | |
|
1167 | var new_cell = this.insert_cell_above('code'); | |
|
1168 | new_cell.set_text(texta); | |
|
1169 | this.select_next(); | |
|
1169 | 1170 | } else if (cell instanceof IPython.MarkdownCell) { |
|
1170 |
cell.set_text(text |
|
|
1171 | cell.set_text(textb); | |
|
1171 | 1172 | cell.render(); |
|
1172 |
var new_cell = this.insert_cell_ |
|
|
1173 | var new_cell = this.insert_cell_above('markdown'); | |
|
1173 | 1174 | new_cell.edit(); // editor must be visible to call set_text |
|
1174 |
new_cell.set_text(text |
|
|
1175 | new_cell.set_text(texta); | |
|
1175 | 1176 | new_cell.render(); |
|
1177 | this.select_next(); | |
|
1176 | 1178 | } |
|
1177 | 1179 | }; |
|
1178 | 1180 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now