Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.41k stars 316 forks source link

Link toggle doesn't work as expected #534

Open preist opened 1 year ago

preist commented 1 year ago

Describe the bug Link toolbar button does not seem to toggle very well. Check the image bellow, it should give you an idea about the problem.

To Reproduce Steps to reproduce the behavior:

  1. Select some text to make into a link
  2. Click on the link button in the toolbar
  3. Now click again to toggle and remove the link
  4. Observe that it functions incorrectly

Expected behavior Adding and removing links should be seamless, the same way as you do in most markdown editing environments

Screenshots 2023-02-25 16 24 05

Version information

Additional context Great work on this editor, keep it up.