Cursor Unexpectedly Jumps to Another Cell When Editing Table Cells
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:
- Create a table with 4 to 6 rows in editor.js.
- Fill in all cells with text.
- Add multiple spaces (e.g., "Text ") at the end of each cell.
- Randomly remove spaces using the Backspace key.
- 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
PR: https://miniature-space-enigma-w4v5957jjjxcp4p.github.dev/
PR: https://miniature-space-enigma-w4v5957jjjxcp4p.github.dev/
It is expected to see a regular PR link at this repo
Hi,
could you please review the below PR. *PR Link: *https://github.com/editor-js/table/pull/174
Regards, Rajesh Koram
On Fri, 28 Feb 2025 at 21:08, Peter @.***> wrote:
PR: https://miniature-space-enigma-w4v5957jjjxcp4p.github.dev/
It is expected to see a regular PR link at this repo
— Reply to this email directly, view it on GitHub https://github.com/codex-team/editor.js/issues/2915#issuecomment-2690965234, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFJ2H6ZDML3SARYKU2ZFXD2SB7GHAVCNFSM6AAAAABX5VIPCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJQHE3DKMRTGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: neSpecc]neSpecc left a comment (codex-team/editor.js#2915) https://github.com/codex-team/editor.js/issues/2915#issuecomment-2690965234
PR: https://miniature-space-enigma-w4v5957jjjxcp4p.github.dev/
It is expected to see a regular PR link at this repo
— Reply to this email directly, view it on GitHub https://github.com/codex-team/editor.js/issues/2915#issuecomment-2690965234, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFJ2H6ZDML3SARYKU2ZFXD2SB7GHAVCNFSM6AAAAABX5VIPCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJQHE3DKMRTGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>