 
   class NumberEditorView extends CellEditorView
 
-    el: '<input type="text" class="bk-cell-editor bk-cell-editor-number" />'
-
-    renderEditor: () ->
-      @$el.spinner(step: @model.get("step"))
-      @$el.focus().select()
+    input: '<input type="text" class="bk-cell-editor bk-cell-editor-number" />'
+
+    renderEditor: () ->
+      @$input.spinner(step: @model.get("step"))
+      @$input.focus().select()
 
     remove: () ->
-      @$el.spinner("destroy")
+      @$input.spinner("destroy")
       super()
 
     serializeValue: () ->


    emptyValue: ""

    el: '<input type="text" class="bk-cell-editor bk-cell-editor-string" />'

    renderEditor: () ->
      completions = @model.get("completions")
      if not _.isEmpty(completions)
        @$el.autocomplete(source: completions)
        @$el.autocomplete("widget").addClass("bk-cell-editor-completion")
      @$el.focus().select()

    loadValue: (item) ->
      super(item)
      @$el[0].defaultValue = @defaultValue
      @$el.select()

  class StringEditor extends CellEditor
    type: 'StringEditor'


    loadValue: (item) ->
      super(item)
      @$input[0].defaultValue = @defaultValue
      @$input.select()

    validateValue: (value) ->
      if isNaN(value)
