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

Right to left editor and Format Code Block issue

5 Answers 63 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Libertad
Top achievements
Rank 1
Libertad asked on 15 Aug 2010, 04:36 AM
Hi there
when the editor is in right to left mode Format Code Block tool also adds code snippets in right to left and even in the right side of the editor.
as you know all the programming languages are in English so the Format Code Block have to be in LTR mode and doesn't changed when editor goes to RTL.
hope this will be fixed in next build.
Thanks.

5 Answers, 1 is accepted

Sort by
0
Libertad
Top achievements
Rank 1
answered on 16 Aug 2010, 10:33 AM

it can be fixed by automatically adding dir="LTR" in div or simply changing the reCodeBlock css file.
by now I'm adding dir="ltr" in div manully when I add code snippet in my left toright content which this is tedious.

 

0
Libertad
Top achievements
Rank 1
answered on 16 Aug 2010, 10:34 AM

it can be fixed by automatically adding dir="LTR" in div or simply changing the reCodeBlock css file.
by now I'm adding dir="ltr" in div manully when I add code snippet in my left toright content which this is tedious.

 

0
Accepted
Rumen
Telerik team
answered on 18 Aug 2010, 03:59 PM
Hi Libertad,

Another way to fix the problem is to modify the content inserted by the FormatCodeBlock tool in the OnClientPasteHtml event of RadEditor. More information about this useful event is available in this live demo: OnClientPasteHtml.

Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Daniel
Top achievements
Rank 1
answered on 12 Dec 2010, 08:40 AM
I have right to left problem and I don't understand how to fix it(actually I am not experienced user).
Please explain what does it mean div.
0
Rumen
Telerik team
answered on 15 Dec 2010, 04:27 PM
Hello Daniel,

Can you please explain what is the exact problem and attach a couple of screenshots that demonstrate how to reproduce it?

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Libertad
Top achievements
Rank 1
Answers by
Libertad
Top achievements
Rank 1
Rumen
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or