     @_current = null
 
   populateInput: =>
-    console.log "Populate input with '#{@serializeEditable()}'"
-    @$input?.val(@serializeEditable())
+    val = @serializeEditable()
+    @$originalInput.val(val)
+    @$input?.val(val)
 
   serializeEditable: ->
     textNodes = []


  deserializeInput: ->
    # TODO implement
    @$input.val()

  _ensureInput: (element)->
    @$originalInput = $(element)

    @$wrap = $('<div class="mentions-kinder-wrap"></div>')
    @$editable = $('<pre class="mentions-kinder-input form-control" contenteditable="true"></pre>')
    @$input = $("<input type='hidden' name='#{@$originalInput.attr('name')}'/>")
    @$input.val(@$originalInput.val())
    @$editable.addClass(@$originalInput.attr("class")).html(@deserializeInput())

    @$wrap.insertAfter(@$originalInput)
    @$originalInput.hide().appendTo(@$wrap)
    @$input.appendTo(@$wrap)
    @$editable.appendTo(@$wrap)

  _setupEvents: ->
    @$editable.bind 'keypress', @handleInput
