sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

Broken with middlemouse.contentLoadURL=true #841

Open Yenya opened 11 months ago

Yenya commented 11 months ago

Hello,

I use Firefox on Linux and in about:config I have middlemouse.contentLoadURL enabled, so that when I have URL selected in a clipboard and click with middle mouse button anywhere in the page except textareas and input boxes, the selected URL gets opened instead of the current page. For textareas and input boxes, the URL text is simply pasted into the input element, as expected.

However, when I click with the middle button inside the simplemde editor, the URL in the selection is opened instead of pasting its content, losing all editing done so far.

Expected behaviour: URL text should be pasted into simplemde-controlled element.

Thanks!