       @imagePreview.attr("src", "")
       @widthEditor.setText("")
       @heightEditor.setText("")
-      @positionEditor.setText("")
+      @alignEditor.setText("")
 
   isValidImageFile: (file) ->
     path.extname(file).toLowerCase() in imageExtensions

          @subview "heightEditor", new EditorView(mini: true)
        @div class: "col-2", =>
          @label "Alignment", class: "message"
          @subview "positionEditor", new EditorView(mini: true)
      @div class: "image-container", =>
        @img outlet: 'imagePreview'


      alt: @titleEditor.getText()
      width: @widthEditor.getText()
      height: @heightEditor.getText()
      align: @alignEditor.getText()
      slug: utils.getTitleSlug(@editor.getPath())
    text = if img.src then @generateImageTag(img) else img.alt
    @editor.insertText(text)
