plate
plate copied to clipboard
Cannot remove marks from mentions
Description
Mentions are markable, but the only way to revert the mark is to remove the whole mention and to create it again or to use history (undo).
Steps to Reproduce
- Go to (https://platejs.org/docs/mention)
- Select all the text in the example
- Make it bold (or italic or underline)
- Remove the mark you just added (with shortcut or button, not undo)
Expected Behavior
Mark should be removed
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
i am not able to reproduce this bug can you help me by adding the video of bug
It seems its not happening always, but I managed to reproduce on the playground by changing the selection
https://github.com/udecode/plate/assets/17004545/291fa62e-6952-4992-8f83-494aece678ad
using removeEditorMark instead of removeMark solved the issue for me removeMark was not working for me on mentions