Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting default direction to RTL

I install Tinymce editor to my site. And now i need to set the default direction to RTL not LTR.You can see below--

 tinymce.init({
        selector: 'textarea#editor',
        directionality :"rtl"
});

I want to set this

result

How can i do that ??

like image 366
Aytan Hamet Avatar asked Oct 30 '25 13:10

Aytan Hamet


1 Answers

If you are going to use it for Arabic language Download the Arabic version

or use this code to set default direction rtl

tinymce.init({
  selector: "textarea#editor",  
  plugins: "directionality",
  directionality :"rtl",
  toolbar: "ltr rtl"
});

and for the orientation of the toolbar options try to contact TinyMCE.

I hope this may help you.

like image 51
Moh Alaraabi Avatar answered Nov 04 '25 00:11

Moh Alaraabi