Skip to content

Cursor Unexpectedly Jumps to Another Cell When Editing Table Cells #2915

Open
@RajeshKoram18

Description

@RajeshKoram18

Description:
When editing table cells in editor.js, the cursor behaves unexpectedly when removing spaces at the end of a cell's content. Instead of staying in the current cell, it randomly jumps to another cell, disrupting the editing experience.

Steps to Reproduce:

  1. Create a table with 4 to 6 rows in editor.js.
  2. Fill in all cells with text.
  3. Add multiple spaces (e.g., "Text ") at the end of each cell.
  4. Randomly remove spaces using the Backspace key.
  5. Observe that the cursor unexpectedly jumps to a different cell.

Expected Behavior:

  • The cursor should remain in the current cell while removing spaces or characters.
  • The cursor should not jump to another cell unexpectedly when pressing Backspace.

Actual Behavior:

  • The cursor jumps to a different cell randomly when deleting spaces at the end of the text.

Environment:

  • Editor.js version: 2.30.7
  • Editor.js table version: 2.4.3

Additional Context:
This behavior disrupts the editing experience, making it difficult to modify text within a table. Ensuring the cursor remains stable in the current cell would improve usability.

Video attachment to reproduce the issue:
https://github.com/user-attachments/assets/4ed5e7b2-6962-4e9e-b493-d3de0664d672

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions