Modified test for text editor to pass on IE.
The problem was that by default IE sets document.activeElement as HTML node, while the rest of the world sets it as BODY.