I’m Developing a WordPress plugin and i added a button to tinymce interface, when user press it the direction of the text convert from right to left .
i tried to do the following but with no luck
tinymce.get('#tinymce').getBody().dir ="rtl";
The Codex article about Writing a Post in RTL Language recommends the use of the plugin WP-RTL, which
Its code is dead simple:
And this is what it does:
It would seem that there is already a plugin that you can initialize that deals with directionality in TinyMCE here
Is this what your looking for or am I missing something?
PS: its not clear as to whether or not it works within the editor, So it may not, but It’s worth a shot I think if it sounds like what your looking for.