I want to change the direction of text to right to left witch is through a right to left context. How can I do that? If needed, what is the best way to add such a button?
for example:
I need to change the direction of numbers to rtl (or vise versa) in this context:
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 987970972735 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
more info: the reason is that in rtl context when we insert a ltr text which has characters like braces, It does not show it correctly.
One solution is to use span for these contexts. For example <span direction="ltr">text</span>
Then it will become correct. I want to know what is the best way to add such a button?
Sincerely
I found it
This is it's pluggin for the purpose:
http://metemaddar.ir/sites/default/files/loft.zip