Skip to content

Improve delete key behavior near image blocks #1478

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

Closed
jorgefreires opened this issue Mar 3, 2025 · 0 comments · Fixed by #1505
Closed

Improve delete key behavior near image blocks #1478

jorgefreires opened this issue Mar 3, 2025 · 0 comments · Fixed by #1505
Labels
enhancement New feature or request

Comments

@jorgefreires
Copy link

Is your feature request related to a problem? Please describe.

I experience unexpected behavior when working with images in BlockNote. When editing a paragraph adjacent to an image block and pressing the Delete key at the start of the subsequent line, the image gets deleted rather than the cursor moving into the image block.

Examples of current behavior vs expected behavior:

Expected (Google Docs behavior):
https://github.com/user-attachments/assets/1e1f97f8-2438-4d63-8b23-36a991ea8711
Cursor moves into image block when deleting at line start

Current (BlockNote behavior):
https://github.com/user-attachments/assets/f0b24e02-7ff8-479e-a75d-e05328059d20
Image gets deleted when using Delete key at line start

Describe the solution you'd like
The cursor should move into the image block when pressing Delete at the beginning of the subsequent line, rather than deleting the image. This should mirror the behavior seen in Google Docs and other mainstream text editors.

@jorgefreires jorgefreires added the enhancement New feature or request label Mar 3, 2025
@jorgefreires jorgefreires changed the title Images are deleted when next paragraph is deleted Improve Delete Key Behavior Near Image Blocks Mar 3, 2025
@jorgefreires jorgefreires changed the title Improve Delete Key Behavior Near Image Blocks Improve delete key behavior near image blocks Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant