[annotator-dev] AnnotatorJs on iFrame

Randall Leeds tilgovi at hypothes.is
Wed Feb 4 05:47:17 UTC 2015

On Tue, Jan 27, 2015 at 2:08 AM, Gianpaolo Trotta <
gianpaolo.trotta at gmail.com> wrote:

> Hi.

Hello, Gianpaolo.

> I use readiumJS to read ebook.
> I would annotate this ebook but ebook viewer is in an iFrame.
> I add js and css annotator's files in head of iFrame but annotator doesn't
> work maybe because
> <div class="annotator-notice"></div>
> <div class="annotator-touch-widget annotator-touch-controls
> annotator-touch-hide"></div>
> are in the document of html container page and not in the document of
> iFrame.

I'm not aware of any reason why this should happen if you put the scripts
in the iframe head.

> The annotator js file is minified and so i can't modify it.

The un-minified version can be found here:

If you determine the cause I'd be glad to help fix it.

Even a simple test case, perhaps an example html page with an iframe in it
and no other scripts beside annotator would help to reproduce and see what
is happening.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150203/dcaaeeb9/attachment-0003.html>

More information about the annotator-dev mailing list