[PDF Embed API] Is there a way to change the behavior of comments?
For the comments, we want to do our own commenting, we have code as following:
annotationManager.registerEventListener(
function (event) {
console.log(event);
console.log(event.type, event.data);
if (event.type === 'ANNOTATION_MODE_STARTED' && event.data === 'freetext') {
//Do our own stuff
//Is there a way to stop the default comment function?
}
});
We basically want to use our own comment function instead of the function provided by API. We can have our comment section shows up, is there a way to stop the default comment function?
