Adding External Css in ApplyClass Dropdown

4 posts, 0 answers
  1. Bakthavachalam Babu
    Bakthavachalam Babu avatar
    3 posts
    Member since:
    Aug 2006

    Posted 07 Oct 2008 Link to this post


    Hi,

    I am using RAD editor for MOSS trial version, I want to add the external css into the ApplyClasses dropdown i used all the ways given in website.It wont take effect even it cant clear the classes in the dropdown by using the clear function.

    Method 1 : Mossraditor1.CssFiles.add("/web/mystyle.css");

    Method 2: <radE:MOSSradEditor id="Mossraditor1" configfile="config.xml">
                        <CssFiles>
                        <radE:EditorCssFile value="/web/mystyle.css">
                        </CssFiles>
                     </radE:MOSSradEditor >
    Method 3: For clear
                
                     Mossraditor1.CssFiles.clear();


    The above three method didnt work properly any body give the idea to work on this.
                  
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 08 Oct 2008 Link to this post

    Hi Bakthavachalam,

    Please, review the following KB article, which provides guidance how to populate the Apply Class dropdown with external css classes:

    Populating RadEditor's Apply CSS Class dropdown with custom styles.


    Best regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Bakthavachalam Babu
    Bakthavachalam Babu avatar
    3 posts
    Member since:
    Aug 2006

    Posted 08 Oct 2008 Link to this post

    Hi Rumen,

    I did what u specified in the article but it didnt take any effect, Always the ms-rte style will displayed in the apply classes drop down.I want to bind the classes form code behind (.cs) file.

    Can you help me please


    Regards
    Babu
  4. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 10 Oct 2008 Link to this post

    Hi,

    Methods 1(if used before the PreRender event) and 2 should work in your case. Method 3 will not work, because the MOSS editor checks if its CssFiles collection is empty in the PreRender event and automatically adds the default css files (ms-rte styles) if the collection is empty.

    I suggest that you open a support ticket and send us the code for your page so we can test it on our local MOSS server.

    Greetings,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top