     )
 
     # :( VE seems to need time to initialize:
-    Em.run.later target, (->
+    that = @
+    Em.run.later target, ->
       this.toolbar.disableFloatable()
-    ), 250
+      that.setupStickyToolbar()
+    , 250
 
     @set('visualEditor', target)
-  ).on('didInsertElement')
 
   saveVisualEditorChanges: ->
     documentNode = ve.dm.converter.getDomFromModel(@get('visualEditor').surface.getModel().getDocument())

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

    ), 250
  ).on('didInsertElement')

  setupVisualEditor: (->
    ve.init.platform.setModulesUrl('/visual-editor/modules')
    container = $('<div>')

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

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

      marginTop: $('.control-bar').outerHeight(true)
      unfixed: ->
        $(this).css('top', '0px')
  ).on('didInsertElement')

  setupStickyToolbar: ->
    Em.run.later (->
      $('.oo-ui-toolbar').scrollToFixed
        marginTop: $('.control-bar').outerHeight(true)
