How to get callback event when a comment box is opened or closed #4161
Unanswered
ganeshrvel
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using the
CommentsPlugin
in my Plate editor and need to detect when a comment box is opened or closed, including when it's closed by clicking outside the box.My current code:
I have handlers for comment add/delete/update, but I need an event specifically for when a comment box closes, including when it's closed by clicking outside the comment area.
From looking at the code, I know the
CommentsPlugin
has anactiveId
state which seems related to when a comment is active, but I'm not sure how to subscribe to changes in this state.Is there a built-in way to listen for comment box open/close events?
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions