     figure.setAttribute("contenteditable", false)
     figure.appendChild(image)
 
-    html: "<div>#{blockComment}#{figure.outerHTML}</div>"
+    html: "<div>#{blockComment}#{cursorTarget}#{figure.outerHTML}#{cursorTarget}</div>"
     document: new Trix.Document [new Trix.Block text]
 
   "image attachment without dimensions": do ->

    figure.setAttribute("contenteditable", false)
    figure.appendChild(image)

    html: "<div>#{blockComment}#{figure.outerHTML}</div>"
    document: new Trix.Document [new Trix.Block text]

  "file attachment": do ->

    text = Trix.Text.textForAttachmentWithAttributes(attachment)

    image = Trix.makeElement("img", src: attrs.url)
    image.dataset.trixMutable = true

    figure = Trix.makeElement
      tagName: "figure"
