Skip to main content
Known Participant
October 28, 2021
Question

[PDF Embed API] Is there a way to change the behavior of comments?

  • October 28, 2021
  • 1 reply
  • 251 views

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?

    This topic has been closed for replies.

    1 reply

    tracy5DC7Author
    Known Participant
    October 28, 2021

    To be more sepecific, it should be "free text" annotation, we want to hook this function to our own.