mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Merge pull request #8 from ivanov/split-below
split focuses the top of the newly created cell
This commit is contained in:
commit
30528b1515
@ -1164,6 +1164,7 @@ var IPython = (function (IPython) {
|
||||
cell.set_text(textb);
|
||||
var new_cell = this.insert_cell_above('code');
|
||||
new_cell.set_text(texta);
|
||||
this.select_next();
|
||||
} else if (cell instanceof IPython.MarkdownCell) {
|
||||
cell.set_text(textb);
|
||||
cell.render();
|
||||
@ -1171,6 +1172,7 @@ var IPython = (function (IPython) {
|
||||
new_cell.edit(); // editor must be visible to call set_text
|
||||
new_cell.set_text(texta);
|
||||
new_cell.render();
|
||||
this.select_next();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user