From beb8192e1e33dd0ae4b1b765718df2d5b6c0b483 2013-09-12 19:28:26 From: MinRK Date: 2013-09-12 19:28:26 Subject: [PATCH] HeadingCells are not splittable or mergeable closes #4200 --- diff --git a/IPython/html/static/notebook/js/textcell.js b/IPython/html/static/notebook/js/textcell.js index d88144d..7e63591 100644 --- a/IPython/html/static/notebook/js/textcell.js +++ b/IPython/html/static/notebook/js/textcell.js @@ -482,6 +482,22 @@ var IPython = (function (IPython) { return data; }; + /** + * can the cell be split into two cells + * @method is_splittable + **/ + HeadingCell.prototype.is_splittable = function () { + return false; + }; + + + /** + * can the cell be merged with other cells + * @method is_mergeable + **/ + HeadingCell.prototype.is_mergeable = function () { + return false; + }; /** * Change heading level of cell, and re-render