             return false
 
       return true
+
+

$ = Annotator.$
xpathRange = Annotator.Range
Util = Annotator.Util

# This plugin implements the UI code for selecting sentences by clicking
module.exports = class Substitution extends Annotator.Plugin

  pluginInit: ->
# Register the event handlers required for creating a selection
    $(document).bind({
      "click": @makeSubstitution
    })

    null

  destroy: ->
    $(document).unbind({
      "click": @makeSubstitution
    })
    super

# This is called when the mouse is clicked on a DOM element.
# Checks to see if there is a sentence that we can select, if so

#
# Returns nothing.
  makeSubstitution: (event = {}) =>

    start_xpath = "/html[1]/body[1]/div[2]/h2[1]"
    end_xpath = "/html[1]/body[1]/div[2]/div[5]/p[2]"
