     super.drawRect(dirtyRect)
     drawArrow()
     
-    if editing {
+    if link.editing {
       drawTextField()
     } else {
       drawStringValue()

      textField.becomeFirstResponder()
      added = true
    }
    
    //    debugDrawing()
  }
  
  // MARK: - Drawing methods

  init(frame frameRect: NSRect, link: Link, canvas: CanvasView) {
    self.link = link
    self.added = false
    self.canvas = canvas
    self.textField = NSTextField()
    super.init(frame: frameRect)
