1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / support RTL language

support RTL language

6 posts, 0 answered
  1. arik
    arik avatar
    3 posts
    Registered:
    17 Aug 2008
    25 Feb 2009
    Link to this post

    Hello

    How do i configure the generic content module to support RTL languages ?

    I saw that there is a possilblity to change the rad editor to support RTL but i couldn't find the css to do so.

    here is the demo for the RTL support in Rad editor , i need the same capabilities in Sitefinity

    http://demos.telerik.com/aspnet-ajax/editor/examples/righttoleft/defaultcs.aspx

    Thanks
    arik

  2. Katia
    Katia avatar
    194 posts
    Registered:
    01 Jul 2016
    27 Feb 2009
    Link to this post
    Hello arik,

    Sitefinity supports right‐to‐left presentation of content. To create a site with right‐to‐left content , you need to modify the .css file of the theme applied to the web site. Set the direction property of the body and write your CSS accordingly.

    For example:

    body 
     
            font-family: Georgia; 
            colorblack
            font-size12px
            backgroundwhite
            directionrtl
     

    We don't have Right-to-left theme for Sitefinity administration but we are working on one. The language direction of the administrative back end will be changed to RTL. The design will be flipped accordingly. Once we are ready, the theme will be available for download from MyClient.net.

    All the best,
    Katia
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. arik
    arik avatar
    3 posts
    Registered:
    17 Aug 2008
    01 Mar 2009
    Link to this post
    Thanks for the response Katia

    Is it possible to add the RTL support to the rich text editor (as done in the RAD editore control) ?
    The porblem is that when using the current rich text editor and trying to write hebrew \arabic and english on the same line , the order of the words mixed up.

    Thanks
    arik
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    03 Mar 2009
    Link to this post
    Hello arik,

    Open ~/Sitefinity/Admin/ControlTemplates/Generic_Content and find ControlPanelInsert and ControlPanelEdit templates. Then find the RadEditor control declaration and set ContentAreaCssFile to point to the file below. For instance you could place it in the same directory and the property  value should look like as below:

    ContentAreaCssFile="~/Sitefinity/Admin/ControlTemplates/Generic_Content/EditorContentArea.css" 

    Here are the css classes for EditorContentArea.css

    .RadEWrongWord 
        background-coloryellow
    .RadEDomMouseOver 
        background-color:#ffffcc;    
    body 
        padding:3px
        background-imagenone
        margin0px
        text-alignrightright
        directionrtl !important; 
        scrollbar-face-color#E9E9E9
        scrollbar-highlight-color#FFFFFF
        scrollbar-shadow-color#E9E9E9
        scrollbar-3dlight-color#DBDBDB
        scrollbar-arrow-color#787878
        scrollbar-track-color#F5F5F5
        scrollbar-darkshadow-color#AEAEAE
        word-wrap: break-word; 
    form 
        background-color:#efefef
        border:1px dashed #555555
    table 
        BORDER-RIGHT: #999999 1px dashed
        BORDER-BOTTOM: #999999 1px dashed
    table td 
        PADDING: 1px
        BORDER-TOP: #999999 1px dashed
        BORDER-LEFT: #999999 1px dashed
    table th 
        PADDING: 1px
        BORDER-TOP: #000000 1px dashed
        BORDER-LEFT: #000000 1px dashed
     

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. arik
    arik avatar
    3 posts
    Registered:
    17 Aug 2008
    05 Mar 2009
    Link to this post
    Thanks Evan

    I'm using Sitefinity 3.6 and there is no ControlPanelInsert , ControlPanelEdit  under the generic content folder.
    However i've changed the ContentAreaCssFile css file and indeed it done the work.
    Now if i'll try to write in LTR mode english and add hebrew words , the order of the words will mixed up.

    Is there a way to change the CSS on the fly  ? maybe add 2 buttons which will allow changing from to RTL and to LTR  ?

    Thanks
    arik
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    05 Mar 2009
    Link to this post
    Hi arik,

    You could add 2 buttons to the admin area which will switch ContentAreaCssFile. Example:

    contentEditor.ContentAreaCssFile = "path here";

    In this case you should map ControlPanelInsert and ControlPanelEdit templates and create a code behind where you will change the path of the css file.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
6 posts, 0 answered