Markdown inline preview of table cursor is off
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
When a table is rendered like this:
| Name | CommentCommentCommentComment |
|---|---|
| Alice | Always involved in various communications |
| Bob | A good guy, who likes to communicate with Alice |
| Malroy | Not so nice guy. Tries to mess with the communication of Alice and Bob. |
If the user click in the editor tab in the table header, the cursor position is off compared to what the user sees. The issue seems to stem from the table header size being different in the preview and in the text area. This can be visualized by selecting all the text in the table header.
Try it for yourself in any code sandbox given like (https://codesandbox.io/embed/react-md-editor-custom-toolbars-m2n10?fontsize=14&hidenavigation=1&theme=dark)
How can I fix this in the CSS please ?
Thanks
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the cursor offset in the linked CodeSandbox using the table example, then inspect the table-header rendering and editor textarea alignment. Done means selecting or clicking the table header places the cursor where the preview shows it.
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
- Needs clarification
- Newbie friendliness
- 35/100