Product: pdftron/webviewer
Product Version: 8.12.0
Please give a brief summary of your issue:
Issue with the undo and redo flow of text annotations.
Please describe your issue and provide steps to reproduce it:
I’m currently working on an issue with the undo and redo functions. Let me describe the issue and attach a video to demonstrate it:
The text annotation is initially displayed as a placeholder “Insert text here” to allow the user to enter content. However, when the “Undo” button is pressed, the text annotation doesn’t get deleted immediately; it reverts back to the “Insert text here” placeholder state. Subsequently, the user needs to press the undo button again to fully remove the text annotation. This behavior is observed in both the undo and redo processes.
Is there a way to prevent this behavior? or Is there a way to bypass the placeholder state (‘Insert text here’) and directly enter the editing state?
I would like to be able to delete or redo the text annotation on the first press of the undo or redo button.
Thank you in advance.