   documentIndex = @documentIndex node
   if documentIndex < @session.floatingBlocks.length
     path.activate()
-    @mainCtx.insertBefore path.element, @session.floatingBlocks[documentIndex].renderGroup.element
+    @mainCanvas.insertBefore path.element, @session.floatingBlocks[documentIndex].renderGroup.element
   else
     path.activate()
-    @mainCtx.appendChild path.element
+    @mainCanvas.appendChild path.element
 
 hook 'mouseup', 0, ->
   clearTimeout @discourageDropTimeout; @discourageDropTimeout = null

    @dragCanvas.style.top = '0px'
    @dragCanvas.style.transform = 'translate(-9999px,-9999px)'

    @draw = new draw.Draw(@mainCtx)

    @dropletElement.style.left = @paletteWrapper.clientWidth + 'px'



  # TODO maybe refactor into qualifiedFocus
  if i < @session.floatingBlocks.length
    @mainCanvas.insertBefore record.renderGroup.element, @session.floatingBlocks[i].renderGroup.element
  else
    @mainCanvas.appendChild record.renderGroup

Editor::drawFloatingBlock = (record, startWidth, endWidth, rect, opts) ->
  blockView = @session.view.getViewNodeFor record.block
