Text format in content area of Radeditor

5 posts, 0 answers
  1. monika
    monika avatar
    6 posts
    Member since:
    Sep 2008

    Posted 13 Nov 2008 Link to this post

    Hi,

    I´m using RadEditor control and I need to specify that when an user introduces some text in the content area, for default align the text to the left side for example.

    Thanks for the help.
  2. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 13 Nov 2008 Link to this post

    Hi Monika,

    Please, review the following help article on the subject: Setting Content Area Defaults.

    In the body class you should set text-align: left; and this setting will set the alignment of the content area to left.

    body
    {
    color: white;
    background-color: black;
    padding:3px;
    background-image: none;
    margin: 0px;
    text-align: left;
    }


    Best regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. monika
    monika avatar
    6 posts
    Member since:
    Sep 2008

    Posted 14 Nov 2008 Link to this post

    Many thanks by the help.
  4. Saeid Kdaimati
    Saeid Kdaimati avatar
    48 posts
    Member since:
    May 2006

    Posted 28 Jul 2011 Link to this post

    Hi,

    I follow the instruction in the article, but still not working out for me. I need to set the default font family, I'm using this block:
    body
    {
        padding: 26px;
        font-family: 'Tahoma !important';
        font-size: 14px !important;
    }

    The editor pick up all classes in the css file and list them in Apply Css Class menu but not applying body format.

    Any help?
  5. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 02 Aug 2011 Link to this post

    Hi Saeid,

    For your convenience I have prepared and attached a simple working project which demonstrates the requested functionality. The test is recorded in the following video: http://screencast.com/t/JYsvrlAXbWh.

    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.

Back to Top