       $scope.current.editExcerpt() if $scope.current?.excerpts
 
     $scope.fileAdded = (file) ->
+      $flow = file.flowObj
       (!$scope.current?.file && $scope.current || blank).upload(file) if editing
       return
 

    if editing
      done = $rootScope.$on '$locationChangeStart', (event, url) ->
        return if url.contains(slot.editRoute())
        return display.cancelRouteChange(event) unless confirmDirty()
        done()
])

      selection: if 'select' of target then new Segment(target.select) else Segment.empty
      position: Offset.parse(target.pos)

    $flow = undefined
    video = undefined
    blank = undefined

