2 posts, 0 answers
  1. Arina
    Arina avatar
    1 posts
    Member since:
    Mar 2013

    Posted 06 Mar 2013 Link to this post

    problem In short description:

    I have my HTML string, with href(s) inside, for example:
    <a href="cfb32e1b-1f4c-4ba0-b278-0ea89a1ea4e3" target="_blank"><span class="s_7EDD076B" dir="RTL">ארינה</span></a>

    i do this flow:
    var provider = new HtmlFormatProvider();
    textCtrl.Document = provider.Import(text);

    After i do it my HTML is changed by Telerik controls by removing dir="RTL" from my href(s).
    So in UI these href(s) are displayed LTR, for example:
    <a href="cfb32e1b-1f4c-4ba0-b278-0ea89a1ea4e3" target="_blank"><span class="s_7EDD076B">ארינה</span></a>
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 11 Mar 2013 Link to this post

    Hello Arina,

    RadRichTextBox uses internal logic in order to determine the direction of the language that particular parts of the text is in. What you can set is the direction of a paragraph - using the UI this can be done using the text direction button in the Home tab (see attached screenshot). In code, you can use the method:


    As for inserting hyperlinks through code, you can refer to this article for explanations and sample code snippets: Hyperlinks.

    I hope this helps.

    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top