Fixes: #11954  RTE: control text direction on the paragraph level

Fix problem with focusing in IE
fixes #17682: ListItem variable height layout on resize() has negative impact on performances