You might look into simply destroying the annotator before you go into edit
mode and reloading it after.
Depending on how you instantiated it (either with the jQuery plugin or
directly) it'll be `annotator.destroy()` or
`$(element).annotator('destroy')`. The former works better, IIRC.
On Tue, Feb 17, 2015 at 6:32 PM, Mike Potter <[email protected]> wrote:
> Thanks Randall. I had another look and it does appear that the
> double-click events are being passed - there was a separate issue in my
> code.
>
> The problem with my code is that it’s doing exactly what I wrote :)
>
> At the moment I still get the annotator image on double click - is there a
> way to prevent the annotator from invoking? I saw an email on the list a
> few months ago asking this question but without reply. I can hide the
> -adder easily, which is what I’m doing, but then if someone clicks in the
> editable text area, the -adder pops up again. I’d prefer to turn off the
> annotator until they’re done editing the text.
>
> Thank you.
>
> Mike
>
> On Feb 17, 2015, at 9:13 PM, Mike Potter <[email protected]> wrote:
>
> Yes, that’s the issue. The double click events that I was capturing before
> are no longer being passed to my code, from what I can tell. I assumed that
> Annotator was capturing them - are you saying they should be passed through?
>
> Mike
>
> On Feb 17, 2015, at 9:12 PM, Randall Leeds <[email protected]> wrote:
>
> Annotator does nothing special with double clicks. Do you find that you're
> unable to capture them when you have annotator enabled?
>
> On Tue, Feb 17, 2015 at 6:11 PM, Mike Potter <[email protected]> wrote:
>
>> Hi all:
>> First of all, thanks for such a great project. A friend and I are
>> working on a website editor / review application, and this fits in
>> perfectly with what we're building.
>>
>> I have run into an issue though. In our application I would like single
>> click / select text to pull up the annotator, but on double click I'd like
>> the user to be able to edit the text on the page (functionality that we
>> already have developed). I've looked through the code and the archives, but
>> haven't found anyone with this same usecase. I'm wondering what the opinion
>> is on the best way to enable this? Should I write a plugin that captures
>> the double click event? Can I edit the code to not capture double clicks?
>> What's the best way to handle this?
>>
>> Thank you very much.
>>
>> Mike
>>
>> --
>> Mike Potter
>> [email protected]
>>
>> _______________________________________________
>> annotator-dev mailing list
>> [email protected]
>> https://lists.okfn.org/mailman/listinfo/annotator-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>>
>>
>
>
>
_______________________________________________
annotator-dev mailing list
[email protected]
https://lists.okfn.org/mailman/listinfo/annotator-dev
Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev