RTL support in HTML code

2 posts, 0 answers
  1. HSLaw
    HSLaw avatar
    153 posts
    Member since:
    Jan 2006

    Posted 19 Jun 2012 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 19 Jun 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top