hi Matt,
thanks for your response
(a) regarding usage of config.js, for trigger 'click.readonly' it is a problematic solution,
better to find mechanism to use the main javascript or plug/inject custom into ReaderControl.js itself rather than embed config.file just for calling this particularly and solely.
can't you provide another alternative, where the readcontrol.js expose a new 'click.readonly'
handler where i can trigger it into parent.body ?
i'm using similar technique today to capture events into parent/main javascript such as 'rotate' or 'notesPanelVisibilityChanged'
$("#rotateGroup").on('click', '[data-rotate]', function() {
var action = $(this).data('rotate');
if (action === "cc") {
me.rotateClockwise();
} else if (action === "ccw") {
me.rotateCounterClockwise();
}
parent.$('body').trigger('rotate', action);
});
or
setTimeout(function(){
me.docViewer.scrollViewUpdated();
me.fireEvent('notesPanelVisibilityChanged', value);
parent.$('body').trigger('notesPanelVisibilityChanged', value);
}, 250);
so question is can you help me to expose this click.readonly so i can listen to it on root app and set stopImmediatePropagation when/where i want ?
thanks
Danny
(b) annotaton "read-only"-> you had provide an example for both span, div, input a toggle to catch before actual clicks happens,and also an example to catch widget of type input/textarea and dynamically set readonly
but i'm not sure your answer covers the "annotations" of type signature,free draw, notes, arrows etc ? or this it ?
thanks
Danny