       @fireEvent 'statechange', [false]
 
       console.log 'ACE SET VALUE ON MELT'
-      @aceEditor.setValue @getValue(), -1
+      @setAceValue @getValue()
 
       top = @findLineNumberAtCoordinate @scrollOffsets.main.y
       @aceEditor.scrollToLine top


    oldScrollTop = @aceEditor.session.getScrollTop()

    @aceEditor.setValue value, -1
    @aceEditor.resize true

    @aceEditor.session.setScrollTop oldScrollTop


    @changeFromAceTimer = null
    @gutter.style.width = @aceEditor.renderer.$gutterLayer.gutterWidth + 'px'
    @resizeBlockMode()
    return @setValue_raw @getAceValue()

  Editor::changeFromAceEditor = ->
    if @changeFromAceTimer then return
