plugin development – How to detect when the user clicks the publish/update button in Gutenberg Editor
I’m currently new to the Gutenberg block development. I was wondering if there is a way to detect when the user clicks the publish/update button?
Reason for this is that i need to call a custom function right after the button click.
The purpose for the custom function is to keep a copy of the original content. After succeeding publish/update click, the block will compare the updated content with the original content for certain keywords.
Thank you for replying.
01 week 2023-05-24T09:06:30-05:00 2023-05-24T09:06:30-05:00 0 Answers 0 views 0
Leave an answer