Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot remove marks from mentions #2951

Open
maxaggedon opened this issue Feb 15, 2024 · 3 comments
Open

Cannot remove marks from mentions #2951

maxaggedon opened this issue Feb 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@maxaggedon
Copy link

maxaggedon commented Feb 15, 2024

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

  1. Go to (https://platejs.org/docs/mention)
  2. Select all the text in the example
  3. Make it bold (or italic or underline)
  4. 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
Fund with Polar
@maxaggedon maxaggedon added the bug Something isn't working label Feb 15, 2024
@kumarajay0412
Copy link

i am not able to reproduce this bug can you help me by adding the video of bug

@maxaggedon
Copy link
Author

maxaggedon commented Apr 18, 2024

It seems its not happening always, but I managed to reproduce on the playground by changing the selection

Enregistrement.de.l.ecran.2024-04-18.a.16.39.39.mov

@kumarajay0412
Copy link

using removeEditorMark instead of removeMark solved the issue for me removeMark was not working for me on mentions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants