mdx-editor / mdx-editor/editor
[BUG] Can't insert text between two tables
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 307
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 5
Description
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- I have read the documentation and cannot find an answer.
Describe the bug
Since tables don't get a cursor at the end of the editor (unlike the image editor for example), there is no way to insert text between two tables if they are right next to each other.
On that same note, is there a way to add a cursor at the end of a custom jsx component?
To Reproduce
Steps to reproduce the behavior:
- Open the Live demo.
- Delete all the prefilled content.
- Insert a table
- Insert another table
- Remove the paragraphs below and around them, so that the only content in the editor are the two tables.
- Try to place the cursor between them or try to place it at the start of the editor.
Expected behavior
I see two options:
- either a cursor is needed after each table (kind of like in the image editor)
- or clicking below or above a table should insert a paragraph before/after it.
Screenshots
https://github.com/user-attachments/assets/c7e95193-8f9e-4e1f-8058-5b1d4129e95e
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Live demo and reproduce the issue using two adjacent tables with surrounding paragraphs removed. Inspect how the editor handles cursor placement at the start of the document and between tables. Done means users can place the cursor or create an insertion point between adjacent tables and at the editor boundaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100