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

RTL support in HTML code

1 Answer 31 Views
Editor
This is a migrated thread and some comments may be shown as answers.
HSLaw
Top achievements
Rank 1
HSLaw asked on 19 Jun 2012, 01:17 PM
Hi,

Just want to check, is it normal for this behaviour? URL: http://www.ximnet.com.my/upload/rtleditor.swf
The + sign is in front of the number in Design mode, but when switch to HTML mode, it is at the back.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jun 2012, 02:21 PM
Hi,

The HTML content area mode is different container and you can set its text-align property to right using the code below:

<telerik:radeditor runat="server" ID="RadEditor1" OnClientModeChange="OnClientModeChange"></telerik:radeditor>
<script type="text/javascript">
    function OnClientModeChange(editor) {
            if (editor.get_mode() == 2) {
                editor.get_textArea().style.direction = "rtl";
                editor.get_textArea().style.textAlign = "right";
            }
        }
</script>


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
HSLaw
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or