Skip to content

[bug]: Uncaught RangeError: Position N out of range, where N is the line where the deletion occurs #2261

@AlinaSelivanova

Description

@AlinaSelivanova

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

when deleting empty space, the error Uncaught RangeError: Position 525 out of range is triggered,
where 525 is the line where the deletion occurs
image

bandicam.2023-09-25.17-26-31-188.mp4

Steps to reproduce

  1. Whrite some text
  2. Do enter 5 times
  3. Upload image
  4. Take cursor to first line
  5. Tap to Del or Backspace key

Browser

Google Chrome

Version

Self-hosted

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions