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

Entering new line only works the first time on IE #305

Closed btecu closed 8 years ago

btecu commented 8 years ago

Using IE11 and Edge, if you press enter once, it works correctly adding a new line. However, if you press enter again, it does not add a new line. Looking at the source, in IE it's adding &nbsp; for enter instead of <br> (in Chrome).

Alex-D commented 8 years ago

It's a content editable browser bug I think... Idk how to fix it :/

Alex-D commented 8 years ago

View PR https://github.com/Alex-D/Trumbowyg/pull/308

btecu commented 8 years ago

That PR is closed, because you measure the code by the number of lines.

Alex-D commented 8 years ago

Wow, keep cool guy. I can keep this issue open. I just don't have the time to check all PR and edge cases.

And yep, one of the project goal is to keep it small. So I count chars. All bugs could be fixed with a lot of code, but I want the smallest code for each patch. Let me the time to check that. I'm not a bot, I've got a life ;)