[annotator-dev] Hide annotator and reload annotations

Steph Skardal steph at endpoint.com
Fri Feb 14 14:58:09 UTC 2014


On 02/14/2014 02:11 AM, Riccardo Tasso wrote:
> it would be nice having something like this:
>
> $(button).on('click', function() {
>
>    var text = $(this.element).find('.text').first();
>    if(text.annotator == undefined) {  // everytime I turn on I reload 
> annotations
>       text.annotator();
>       text.annotator('addPlugin', 'MyAnnotatorPlugin');
>       ...
>    } else {
>        text.annotator.destroy();
>        // at this point text.annotator is undefined
>    }
> });


+1 on this request



More information about the annotator-dev mailing list