 publicationCacheHandle = null
 
 # If set to an annotation id, focus on next render
-#focusAnnotationId = null
+focusAnnotationId = null
 
 # We use our own reactive variable for publicationDOMReady and not Session to
 # make sure it is not preserved when site autoreloads (because of a code change).

focusEditor = ($editor) ->
  currentPublication?._highlighter?._annotator?._deselectAllHighlights()
  $editor.focus()
###

Template.publicationAnnotationsItem.events
  'click .edit-button': (e, template) ->


        LocalAnnotation.documents.remove @_id

        focusAnnotationId = annotationId

        Meteor.Router.toNew Meteor.Router.annotationPath Session.get('currentPublicationId'), Session.get('currentPublicationSlug'), annotationId
    else
