javascript - Change the text direction of cleditor from right to left? -


i have form in arabic language in using cleditor text area.editor works fine earlier have used javascript function change text direction of textarea right left form in arabic. javascript function used is

function rtl(element)         {                if(element.setselectionrange){                 element.setselectionrange(0,0);             }         }  <textarea name="test" id="test"   onkeyup="rtl(this);"></textarea> 

how make javascript function work on cleditor? possible?

i think need add following change text direction in cleditor.

$("#test").cleditor({                       bodystyle: "direction:rtl"                     }); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -