NumberCellType.prototype.createEditorElement = function (context) {
var editor = GC.Spread.Sheets.CellTypes.Text.prototype.createEditorElement.call(this, context)
var textarea = editor
var removeNoNumber = function (){
var textarea = this;
var value = textarea.value
if(value && value.length && !$.isNumeric(value)){
textarea.value = '';
}
}
textarea.onkeydown = removeNoNumber;
textarea.onkeyup = removeNoNumber;
textarea.onchange = removeNoNumber;
return editor;
}; |