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

Community Beginner ,
Oct 28, 2021 Oct 28, 2021

Copy link to clipboard

Copied

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?

Views

49

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 28, 2021 Oct 28, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines