   if controller.edited
     ' '
 
+$(document).on 'click', '.js-submit-page', (e) ->
+  controller.edited = false
+  true
+

      end = @$content.selection('getPos').end + pos
      @$content.selection('setPos', { start: end, end: end })

   edit: ->
     @edited = true

controller = new PagesController()

$ ->

, 1000

$(document).on 'keyup', '#page_title, #page_content, #wiki_title, #wiki_content, #wiki_slug', ->
  controller.edited = true

$(document).on 'click', '.js-insert', (e) ->
  e.preventDefault()
