TinyMCE – Add button that changes direction of selected text

Question

Ok, I am going to create website in Urdu(rtl) & English(ltr) language that contain paragraphs like this:

<p style="direction:rtl">کیا حال ہے buddy? سب خیریت ہے؟</p>

You can see that sentence in not showing correctly. I want to change the direction of English words in sentense. like this:

<p style="direction:rtl">کیا حال ہے <bdo dir="ltr">buddy?</bdo> سب خیریت ہے؟</p>

You can see more clear differance at JSfiddle. How it is possible? Any idea?

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/tinymce-add-button-that-changes-direction-of-selected-text/">

TinyMCE - Add button that changes direction of selected text</a>
0
, , John Doe 1 week 0 Answers 30 views 0

Leave an answer