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

RTL : Brackets get inverted when importing HTML in RichtextBox

1 Answer 83 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kushagra
Top achievements
Rank 1
Kushagra asked on 24 Mar 2015, 08:40 AM
Hello,

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,
Kushagra

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>

-------------------------------------------------------------------------------------------------------------

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 26 Mar 2015, 05:01 PM
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.

Regards,
Tanya
Telerik
 

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

 
Tags
RichTextBox
Asked by
Kushagra
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or