Hi,
I'm seeking to get access to the event data when a user highlights text and perhaps I'm not going about about it the intended way.
From the documentation I see the TextAnnotationCreateTool has a 'textSelected' event by way of TextTool. Within a config.js I see that readerControl has a toolModeMap with what looks like tools and I'm able to programmaticly set the mode to text highlight using the AnnotationCreateTextHighlight tool from the map.
But this never seems to fire:
$(function () {
readerControl.toolModeMap['AnnotationCreateTextHighlight']
.bind('textSelected', function (quads, text) {
console.log('textSelected');
console.log(quads);
console.log(text);
});
});
I note that the names of the tools in the map to explicitly correspond to the tools listed in the documentation, am I missing something?
Thanks,
Chris