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?
Copy link to clipboard
Copied
To be more sepecific, it should be "free text" annotation, we want to hook this function to our own.