mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.57k stars 124 forks source link

[BUG] #523

Closed sadrakmorais closed 6 days ago

sadrakmorais commented 1 week ago

If you want to ask for support or request features, sponsor the project and contact me over email.

Describe the bug When creating a link in the MDX Editor, the link encompasses the entire line regardless of the selection. Even if only a part of the line is selected, the resulting link covers the whole line.

To Reproduce Steps to reproduce the behavior:

  1. Open the MDX Editor.
  2. Type a line of text.
  3. Select a part of the text on that line.
  4. Use the functionality to create a link.

Expected behavior The link should only be applied to the selected text, not the entire line.

Screenshots or GIFs screencast-from-2024-07-03-16-56-39_FkJOsB5l

Additional information

Additional context Add any other context about the problem here.

petyosi commented 6 days ago

This should be solved in the latest version.