RTE: support rtl direction on paragraph level (t#11954)

These changes complement the main work, sent with the pull request to dijit.