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
Post a Comment