Multi Language RadEditor

6 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 27 Jul 2011 Link to this post

    Hello,

    I'm building a multi language (RTL  and LTR) webpage which uses a RadEditor control.
    I'm using the following RTL control:
    <telerik:RadEditor runat="server" ID="RadEditor1" Height="350px"
                                DialogsCssFile="./RTL/RadEditor_Dialogs_RTL.css" ContentAreaCssFile="./RTL/EditorContentArea_RTL.css">
                                <Modules>
         <telerik:EditorModule Visible="false" />
                                </Modules>
                            </telerik:RadEditor>

    But the problem is when changing the language to LTR, the RadEditor is still behave in RTL mode because of the following attributes:
    DialogsCssFile
    ContentAreaCssFile

    What I shoud do?

    Please, I need your help,
    It is very appreciated to send me the modified code.

    Regards,
    Bader
  2. Rumen
    Admin
    Rumen avatar
    13752 posts

    Posted 01 Aug 2011 Link to this post

    Hi Bader,

    Have you tried to not set the DialogsCssFile and the ContentAreaCssFile properties when loading the editor in its default LTR mode?

    All the best,
    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.

  3. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 01 Aug 2011 Link to this post

    Hello,

    Thank you for your reply,
    Yes, I tried, I got a RTL mode in LTR languages.

    Regards,
    Bader
  4. Rumen
    Admin
    Rumen avatar
    13752 posts

    Posted 04 Aug 2011 Link to this post

    Hello Bader,

    You can find attached a basic example which demonstrates how to switch from RTL to LTR mode and vice versa. It is up to you to enhance it to fit in your scenario.

    Best wishes,
    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.

  5. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 22 Aug 2011 Link to this post

    Hello,

    Thank you for your reply, I still have a problem.
    I just sat a width of 100% to the radeditor control. If you switch to RTL mode then the Design, HTML and Preview buttons will apear in the center (Instead of the right side) and the header icons must also appear in RTL mode, thats mean, the Icons must be aligned to the right side (Please, view the attached image).

    Please, I need your help,
    It is very appreciated to send me the modified code.

    Regards,
    Bader
  6. Rumen
    Admin
    Rumen avatar
    13752 posts

    Posted 25 Aug 2011 Link to this post

    Hi Bader,

    You should import the RTL/Editor_RTL.css file when the editor is placed in RTL mode and remove it when it is not.

    Regards,
    Rumen
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top