added rtl/ltr support for wysihtml5