mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
don't hide cell toolbar on rendered text cells
because it annoys @Carreau
This commit is contained in:
parent
aaa027f503
commit
6038612732
@ -280,7 +280,7 @@ define([
|
||||
}
|
||||
|
||||
// If there are no controls or the cell is a rendered TextCell hide the toolbar.
|
||||
if (!this.ui_controls_list.length || (this.cell.cell_type != 'code' && this.cell.rendered)) {
|
||||
if (!this.ui_controls_list.length) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
|
@ -137,9 +137,6 @@ define([
|
||||
}
|
||||
this.refresh();
|
||||
}
|
||||
if (this.celltoolbar.ui_controls_list.length) {
|
||||
this.celltoolbar.show();
|
||||
}
|
||||
return cont;
|
||||
};
|
||||
|
||||
@ -180,7 +177,6 @@ define([
|
||||
*/
|
||||
TextCell.prototype.set_rendered = function(text) {
|
||||
this.element.find('div.text_cell_render').html(text);
|
||||
this.celltoolbar.hide();
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user