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

Unable to delete some elements in firefox #276

Closed rmills closed 8 years ago

rmills commented 8 years ago

Tested both in a local test and on: https://alex-d.github.io/Trumbowyg/ .

Chrome works as expected. However in firefox <hr> tags can no be deleted in most cases. If you use the html view to clear all the content, switch back to the design view, use the toolbar to add an <hr> you can not back space to delete it. Unordered lists created the same issue where you could not backspace to remove the first element once it was created.

Example resulting code copy pasted from the html view:

<ul><li><br><hr></li></ul><p><hr></p>

Informations

Firefox + 46.0.1: Win 7:

Alex-D commented 8 years ago

It's a Firefox bug and Idk how to fix it. I don't have the time to search more, sorry.