+
 # ------------------------------------------------------------------------------
 # METHODS
 

    $editable.html($html.val()?.trim())
    $html.height($editable.height())

# Autosave
  'input .editable, keydown .editable, keydown .html-editor': _.debounce (e, tpl) ->
    save tpl, (id, err) ->
      if err
        return toastr.error err.message

      if id
# If new blog post, subscribe to the new post and update URL
        tpl.id.set id
        path = Blog.Router.pathFor 'blogAdminEdit', id: id
        Blog.Router.replaceState path

      w = @width
      h = @height
      n = file.name
      cb(w,h,n) # callback with width, height as params
      return

    image.onerror = ->
