       " #{@session.view.opts.tabOffset + @session.view.opts.tabWidth - CURSOR_WIDTH_DECREASE / 2} 0"
 
   @cursorPath = new @session.view.draw.ElementWrapper(cursorElement)
-  @cursorPath.setParent @mainCtx
+  @cursorPath.setParent @mainCanvas
 
   @mainCanvas.appendChild @cursorCtx
 

    'fillColor': 'rgba(0, 0, 256, 0.3)'
    'cssClass': 'droplet-cursor-path'
  })
  @textCursorPath.setParent @mainCtx

  cursorElement = document.createElementNS SVG_STANDARD, 'path'
  cursorElement.setAttribute 'fill', 'none'


  # 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
