Alex-D / Trumbowyg

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

Critical: Applying formatting e.g. h1 hangs the web browser and cooks cpu #1271

Closed timint closed 2 years ago

timint commented 2 years ago

As reported by a user in the LiteCart Forums I can confirm an issue where applying formatting hangs the web browser with cpu going wild. (Reference: https://www.litecart.net/en/forums/15/errors-and-troubleshooting/15666/how-to-solve-trumbowyg-bug)

It is reproduced here with cdnjs sources. https://jsfiddle.net/timint/97fgj5w6/

Simply select text and apply a formatting e.g. h1.

Alex-D commented 2 years ago

Duplicates #1259