Skip to content

Markdown inline preview of table cursor is off #673

@fbarre96

Description

@fbarre96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions