RichText: empty anchor is removed (also in classic editor) #13331
Labels
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
[Type] Bug
An existing feature does not function as intended
Describe the bug
When editing a paragraph containing an anchor (e.g. ) in Firefox (64.0.2, macOS 10.14.2), pressing the delete key to delete any text in the paragraph removes the anchor, regardless of the position of the cursor in relation to the anchor within the paragraph. This affects both classic blocks and paragraph blocks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The anchor should be unaffected unless the cursor directly follows the anchor icon when the delete key is pressed.
Screenshots
https://cl.ly/24307cf3c26c
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: