How do I know if a mention has been deleted? #2009
Unanswered
leo-petrucci
asked this question in
Questions & Help
Replies: 1 comment 1 reply
-
What about storing the list of mentions in your backend and checking if one was removed there? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The mention plugin is amazing! But I'm having some trouble using it.
So, every time a new mention is made, I add information about the user's account that's been mentioned to an array. This includes their
id
, as well as theirusername
, it's all stuff I need to notify the user correctly in the backend.The process works pretty well, but the problems come along when I need to delete one of those mentions: How do I know when a specific mention has been removed from the editor so I can remove it from my array?
Typescript tells me there's no onDelete callback or anything similar. Is there a workaround I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions