RTL : Brackets get inverted when importing HTML in RichtextBox

2 posts, 0 answers
  1. Kushagra
    Kushagra avatar
    16 posts
    Member since:
    May 2011

    Posted 24 Mar 2015 Link to this post


    We are using richtextbox in RTL. We mostly use arabic text and the issue here is that the html which we have has some brackets which render properly when I open the html in a web brower (say Firefox,IE) and also from microsoft word, but when I try to import the same html in RichTextbox the brackets are either reversed or disoriented or not rendered properly. Attached are the sample html to reproduce the issue and the screenshots from word and telerik richtextbox editor.

    Best Regards,

    The HTML Content is listed below :


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
    p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; }
    body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; }
    .Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; }
    .TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; }
    .NormalWeb { telerik-style-type: paragraph;telerik-style-name: NormalWeb;margin-top: 6.66px;margin-bottom: 6.66px;border-collapse: collapse; }
    .p_38469689 { telerik-style-type: local;text-align: right;direction: rtl; }
    .s_418A915A { telerik-style-type: local;font-family: 'Arial';font-size: 16px; } </style></head><body><p dir="RTL" class="NormalWeb p_38469689"><span class="s_418A915A" dir="RTL">نتسيبنسبتيس ستيبنسيبت ستبسينبتسي تنسيمتب (تسيباسبسبس)اتسياباتسيباتسباسببابستيابيسيابتيس</span></p><p dir="RTL" class="NormalWeb p_38469689"><span class="s_418A915A" dir="RTL">نتسيبتنسيتبتسينبتسي (ايتسبس ) اسيتباتسيباتيساتبسبسيابتسيبايسا</span></p><p dir="RTL" class="NormalWeb p_38469689"><span class="s_418A915A" dir="RTL">يبنتلتنيل (نتبلبتيلتي) نبيلنمبيلنبينلبينلنيليمنليمنلنينيلنيلميلمينليت</span></p><p dir="RTL" class="NormalWeb p_38469689"><span class="s_418A915A">&nbsp;</span></p><p dir="RTL" class="NormalWeb p_38469689"><span>&nbsp;</span></p></body></html>


  2. Tanya
    Tanya avatar
    376 posts

    Posted 26 Mar 2015 Link to this post

    Hello Kushagra,

    Thank you for contacting us.

    I reproduced the issue and logged it in our backlog. At this point I am not able to give you any specific time frame when it will be fixed, but you could subscribe to this public item in the feedback portal and will be notified immediately for status changes.

    Your Telerik points were updated in appreciation of the report.

    As a workaround I can suggest you to set the RadRichTextBox's TextRenderingMode property:
    <telerik:RadRichTextBox TextRenderingMode="TextBlockWithPropertyCaching">

    Hope this helps.


    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft R3 2016 release webinar banner
Back to Top