 ETahi.PaperEditView = Ember.View.extend
-  visualEditor: null,
+  visualEditor: null
 
   setBackgroundColor:(->
     $('html').addClass('matte')

    )

    # :( VE seems to need time to initialize:
    Em.run.later target, (->
      this.toolbar.disableFloatable()
    ), 250

    @set('visualEditor', target)
  ).on('didInsertElement')

  saveVisualEditorChanges: ->
    documentNode = ve.dm.converter.getDomFromModel(@get('visualEditor').surface.getModel().getDocument())

          $(this).css('marginTop', '0')

    ), 250

  setupVisualEditor: (->
    ve.init.platform.setModulesUrl('/visual-editor/modules')
    @updateVisualEditor()

    @addObserver 'controller.model.body', =>
      @updateVisualEditor()
  ).on('didInsertElement')

  updateVisualEditor: ->
    container = $('<div>')

    $('#paper-body').html('').append(container)

    target = new ve.init.sa.Target(
      container,
