[annotator-dev] Annotator with sentences

Randall Leeds tilgovi at hypothes.is
Tue Oct 1 00:17:39 UTC 2013

If you simply watch for mouse events on the document and modify the
selection using the standard DOM selection API then the subsequent click to
add an annotation should target the whole sentence.

There may be issues with the order of events as the annotator is saving the
current selection as well. One workaround would be to attach your handler
below the document level (perhaps to the body or to each paragraph).

On Sat, Sep 28, 2013 at 10:41 PM, Mifla Mashood <mifla17 at gmail.com> wrote:

> Hi All,
> I would like to use annotator in one of my projects to annotate sentences.
> Instead of highlighting phrases in a sentence, I would like annotator to
> highlight the sentence when the user clicks anywhere on the sentence. Has
> anyone customized annotator to do something similar before? If not I would
> like ideas on how I should go about achieving this.
> Thanks in advance.
> --
> Kind Regards,
> Mifla
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/annotator-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20130930/d9e9fc72/attachment-0001.html>

More information about the annotator-dev mailing list