     $editable.html($html.val()?.trim())
     $html.height($editable.height())
 
-  # Autosave
+# 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
+# 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 = ->

    setEditMode tpl, 'html'
    $html.height($editable.height())

# Copy HTML content to visual editor and autosize height
  'keyup .html-editor': (e, tpl) ->
    $editable = tpl.$('.editable')
    $html = tpl.$('.html-editor')
