Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown inline preview of table cursor is off #673

Open
fbarre96 opened this issue Nov 14, 2024 · 0 comments
Open

Markdown inline preview of table cursor is off #673

fbarre96 opened this issue Nov 14, 2024 · 0 comments

Comments

@fbarre96
Copy link

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.

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant