diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js index 3c867373760..bb0858c7b9a 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js @@ -1241,20 +1241,21 @@ angular.module('zeppelinWebApp') manualRowResize: true, editor: false, fillHandle: false, + fragmentSelection: true, disableVisualSelection: true, cells: function (row, col, prop) { var cellProperties = {}; - cellProperties.renderer = function(instance, td, row, col, prop, value, cellProperties) { - Handsontable.NumericCell.renderer.apply(this, arguments); - if (!isNaN(value)) { - cellProperties.type = 'numeric'; - cellProperties.format = '0,0'; - cellProperties.editor = false; - td.style.textAlign = 'left'; - } else if (value.length > '%html'.length && '%html ' === value.substring(0, '%html '.length)) { - td.innerHTML = value.substring('%html'.length); - } - }; + cellProperties.renderer = function(instance, td, row, col, prop, value, cellProperties) { + if (!isNaN(value)) { + cellProperties.format = '0,0.[00000]'; + td.style.textAlign = 'left'; + Handsontable.renderers.NumericRenderer.apply(this, arguments); + } else if (value.length > '%html'.length && '%html ' === value.substring(0, '%html '.length)) { + td.innerHTML = value.substring('%html'.length); + } else { + Handsontable.renderers.TextRenderer.apply(this, arguments); + } + }; return cellProperties; } });