[annotator-dev] Annotator with sentences
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,
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> Unsubscribe: http://lists.okfn.org/mailman/options/annotator-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev