• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[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

145

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.

Votes

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
Resources