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

Bug: Backspace on beginning of paragraph following an image deletes it instead of merging #6987

Open
KararTY opened this issue Dec 21, 2024 · 0 comments

Comments

@KararTY
Copy link

KararTY commented Dec 21, 2024

Lexical version: Playground (0.21.0)

Steps To Reproduce

  1. Add sample image.
  2. Add text "abc" after image on same row/paragraph.
  3. Move to beginning of "abc", press Enter to create new row/paragraph.
  4. Press Backspace.

Link to code example: https://playground.lexical.dev/

The current behavior

Backspace on beginning of paragraph following an image deletes the image.

2024-12-21.01-13-11-00.00.00.864-00.00.15.198-00.00.00.833-00.00.15.232.mp4

The expected behavior

On document editors like Google Docs, the text "abc" will be placed alongside the image instead of the image being deleted.

2024-12-21.01-35-46-00.00.01.882-00.00.14.495-00.00.01.044-00.00.14.531.mp4

Impact of fix

This is just an inconsistency vs how Google Docs & LibreOffice works. Haven't tested others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant