     desiredText = event.target.innerText || event.target.textContent
     desiredText = desiredText.split('.')[0]
 
-    range = document.createRange()
-    range.selectNodeContents(event.target)
-
-    selector = new Selector_Class(event.target, event.target, 0, desiredText.length)
-
     full_xpath = Util.xpathFromNode($(event.target), document)
 
     data = {

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

RangeAnchor = require('../../../../../../h/h/static/scripts/annotator/anchoring/types').RangeAnchor
FragmentAnchor = require('../../../../../../h/h/static/scripts/annotator/anchoring/types').FragmentAnchor
TextPositionAnchor = require('../../../../../../h/h/static/scripts/annotator/anchoring/types').TextPositionAnchor
TextQuoteAnchor = require('../../../../../../h/h/static/scripts/annotator/anchoring/types').TextQuoteAnchor


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

    window.getSelection().removeAllRanges()
    window.getSelection().addRange(anchor.toRange())

