     @editBox = document.getElementsByClassName('js-forum-reply-write')
     @previewBox = document.getElementsByClassName('js-forum-reply-preview')
 
+    @lastBody = null
+
     $(document).on 'ajax:success', '.js-forum-topic-reply', @posted
 
     $(document).on 'click', '.js-forum-reply-preview--show', @fetchPreview



  fetchPreview: =>
    return if $(@previewButton).hasClass('active')

    if $(@previewButton).attr('data-should-refresh') == '0'
      @showPreview()
      return

    $.ajax
      url: $(@previewButton).attr('data-preview-url')
      method: 'POST'
      data:
        body: $(@input).val()

    .done (data) =>
      $(@previewBox).html(data)

      $(@previewButton).attr('data-should-refresh', '0')
      $(@input).one 'input', @invalidatePreview

      @showPreview()




    $(@previewButton).removeClass('active')
    $(@writeButton).addClass('active')


  posted: (e, data) =>
