Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

HTML code being loaded on the link text modal input #1223

Open devguar opened 3 years ago

devguar commented 3 years ago

Description

When I select a part of the text and change the font family, bold, color, or anything related the style and immediately click on the Insert Link button it loads a html code on the link text input. The HTML even contains the element I selected, but it should just contains the text, not the tags anything else.

How to reproduce?

You can check even on the demo page: https://alex-d.github.io/Trumbowyg/demos/

Easier to understand here: Peek 2021-06-01 22-20

benji07 commented 3 months ago

I've got the same problem, but sometime the result is ok

https://github.com/Alex-D/Trumbowyg/assets/166890/2fdc97a0-35ec-407f-9358-7a64af37521e