|
|
|
|
@ -197,6 +197,10 @@ define(function (require) {
|
|
|
|
|
this.events.on('set_next_input.Notebook', function (event, data) {
|
|
|
|
|
if (data.replace) {
|
|
|
|
|
data.cell.set_text(data.text);
|
|
|
|
|
if (data.clear_output !== false) {
|
|
|
|
|
// default (undefined) is true to preserve prior behavior
|
|
|
|
|
data.cell.clear_output();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
var index = that.find_cell_index(data.cell);
|
|
|
|
|
var new_cell = that.insert_cell_below('code',index);
|
|
|
|
|
|