 
     el: '<input type="text" class="bk-cell-editor bk-cell-editor-number" />'
 
-    render: () ->
+    renderEditor: () ->
       @$el.spinner(step: @model.get("step"))
-      @disable_horizontal_navigation()
-      @disable_vertical_navigation()
       @$el.focus().select()
 
     remove: () ->


    validate: () -> return @validateValue(@getValue())

    disable_horizontal_navigation: () ->
      @$el.bind "keydown", (event) =>
        if event.keyCode == $.ui.keyCode.LEFT or event.keyCode == $.ui.keyCode.RIGHT
          event.stopImmediatePropagation()

    disable_vertical_navigation: () ->
      @$el.bind "keydown", (event) =>
        if event.keyCode == $.ui.keyCode.UP   or event.keyCode == $.ui.keyCode.PAGE_UP   or
           event.keyCode == $.ui.keyCode.DOWN or event.keyCode == $.ui.keyCode.PAGE_DOWN
          event.stopImmediatePropagation()

  class StringEditorView extends CellEditorView

    emptyValue: ""

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

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

    loadValue: (item) ->


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

    renderEditor: () ->
      @$el.spinner(step: @model.get("step"))
      @$el.focus().select()

    remove: () ->
