Hi! Encountered an issue today.
Repro:
editor.setHTML('<i>foo<br>bar</i>'); editor.increaseQuoteLevel().
- Set cursor to the end of the first line.
- Press Enter. Get an empty line as expected.
- Press Enter. Get another empty line instead of split.
isEmptyBlock() function checks the textContent property for an element. And in this case, it is not empty and so no split happens.
This example is a reduction of a real world E-mail I have in my database. Should I be doing some extra preprocessing for this kind of input? Is it possible to fix this in Squire itself?