 
   Editor::performFreezeAnimation = (fadeTime = 500, translateTime = 500, cb = ->)->
     if not @currentlyUsingBlocks and not @currentlyAnimating
+      @copyAceEditor()
+
       @fireEvent 'statechange', [true]
+
       setValueResult = @setValue_raw @aceEditor.getValue()
 
       unless setValueResult.success

    else
      @redrawMain()

    @redrawTextHighlights()
    
  Editor::redrawTextHighlights = ->
    textFocusView = @view.getViewNodeFor @textFocus

    # Determine the coordinate positions

    @aceEditor.getSession().setTabSize 2

    @aceEditor.on 'change', =>
      if @currentlyUsingBlogs and not @suppressChangeEvent
        @copyAceEditor()

    @currentlyUsingBlocks = true
    @currentlyAnimating = false
