wymeditor/wymeditor — pull request #369 by vjt (2012-09-21 14:54:36+00:00)
Title: DIV created after exiting an UL/OL via double enter keypress

Hi,

On Chrome 22, Internet Explorer 8 and 9, if you create an (un)ordered list and then hit "enter" twice, you correctly close the list, but the cursor ends up being into an empty "div"; and no `.container()` call can reset it to a `P`.

In the attached commit there is an hacky and wrong solution that uses `.fixBodyHtml()` as invoked from the `keyup` handler.

What is instead the correct way of handling this, in your opinion?

Thanks.