JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.67k stars 308 forks source link

Duplicate text when adding link to text #1326

Open Danielfelgate opened 8 months ago

Danielfelgate commented 8 months ago

Describe the bug When selecting text and adding a link, the text is duplicated. It seems to occur when the selection drags a decent way into the left margin.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://suneditor.com/sample/index.html
  2. Add text
  3. Select text, dragging into the left margin
  4. Add link
  5. Text is duplicated

Expected behavior Text shouldn't be duplicated.

Screenshots Screen Recording 2023-11-02 at 10 13 52 AM

Desktop

Additional context Seems to have been reported previously in https://github.com/JiHong88/suneditor/issues/1197 and marked as resolved.