This is a migrated thread and some comments may be shown as answers.

[Solved] Right to left with cursor moving ahead

2 Answers 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
safeer ahmad
Top achievements
Rank 1
safeer ahmad asked on 16 Oct 2009, 03:53 PM
Hi,
I am using rad Editor for some content manipulation which can be either in right to left language like arabic.
Is that possible to write in arabic using rad editor while cursor should move ahead rather staying there...this is what exactly happens when we use any left to right language???.

I am waiting for your response.

Thanks for your help.

2 Answers, 1 is accepted

Sort by
0
safeer ahmad
Top achievements
Rank 1
answered on 19 Oct 2009, 09:51 AM
any help??????
0
Rumen
Telerik team
answered on 21 Oct 2009, 02:54 PM
Hi Safeer,

You can use the following custom buttons to put the cursor to the right or to the left:

<telerik:RadEditor ID="RadEditor1" runat="server">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="RTL" ShowText="true" ShowIcon="false" />
            <telerik:EditorTool Name="LTR" ShowText="true" ShowIcon="false" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>
<script type="text/javascript">                     
Telerik.Web.UI.Editor.CommandList["RTL"] = function(commandName, editor, args)
{               
            editor.get_document().body.style.textAlign = "right";
   
}
 
Telerik.Web.UI.Editor.CommandList["LTR"] = function(commandName, editor, args)
{               
   editor.get_document().body.style.textAlign = "left";
}
</script>


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
safeer ahmad
Top achievements
Rank 1
Answers by
safeer ahmad
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or