[annotator-dev] Add annotate function only to content of some divs
Randall Leeds
tilgovi at hypothes.is
Fri Nov 28 21:55:10 UTC 2014
As far as I know that should work as you expect. Does it not?
On Nov 28, 2014 2:38 PM, "Alexander Wülfing" <alexander.wuelfing at gmail.com>
wrote:
>
>
> Hi,
>
> my question:
>
> the text inside a div can be annotated. But what if I have certain divs
> and want to specify which content can be annotated (not all divs)? How can
> I add the annotate function only to some of my many divs?
>
> For example:
> <div id="content">
> <p>Bla</p><p>Blub</p>
> </div>
> <div id="content2">
> <p>Bla</p><p>Blub</p>
> </div>
> <div id="content3">
> <p>Bla</p><p>Blub</p>
> </div>
>
> var content = jQuery("#content").annotator();
> // Works for content but if I specify
> var content3 = jQuery("#content3").annotator();
> // as well only the text inside the div with id content can be annotated
> // The content inside content2 should no be annotatable
>
> How can I solve this problem?
>
> Thanks and regards
>
> Alexander
>
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20141128/a68e3733/attachment-0004.html>
More information about the annotator-dev
mailing list