Undo Annotation Delete Event Handling #2893
IhebChemkhi
started this conversation in
General
Replies: 1 comment
-
|
Sounds like a missing feature. As far as I remember, I've implemented the events before the undo dialog was implemented. That explains why there's no event yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been going through the documentation but couldn’t find anything related to this specific issue.
I'm extracting annotations from the PDF and saving them to my database, then re-applying them when the annotation layer is rendered so far, so good.
The problem arises with the undo functionality. I'm currently using the annotationEditorEvent to listen for changes and save annotations when the event is triggered (e.g., on add or delete). However, after deleting an annotation, a popup appears allowing the user to undo the deletion, but I can’t find any corresponding event that fires when the undo actually happens.
Is there a way to detect or handle the undo action so I can keep my saved annotations in sync with the viewer state? Alternatively, is there a way to remove or disable the undo popup?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions