 
   displayAndUploadImages: (file)->
     @displayCachedImage file
-    @uploadFile file
 
   imageSelect: (ev)->
     $selectFile = $('<input type="file" multiple="multiple">').click()

        @displayAndUploadImages(file)
      i++

  uploadFile: (file)=>

    $.ajax
      type: "post"


  insertTemplate: ()->
    "<figure contenteditable='false' class='graf graf--figure is-defaultValue' name='#{utils.generateUniqueName()}' tabindex='0'>
      <div style='' class='aspectRatioPlaceholder is-locked'>
        <div style='padding-bottom: 100%;' class='aspect-ratio-fill'></div>
        <img src='' data-height='375' data-width='600' data-image-id='' class='graf-image' data-delayed-src=''>
      </div>
      <figcaption contenteditable='true' data-default-value='Type caption for image (optional)' class='imageCaption'>
