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

Adding External Css in ApplyClass Dropdown

3 Answers 73 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Bakthavachalam Babu
Top achievements
Rank 1
Bakthavachalam Babu asked on 08 Oct 2008, 03:36 AM

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.
              

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Oct 2008, 07:13 AM
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.
0
Bakthavachalam Babu
Top achievements
Rank 1
answered on 08 Oct 2008, 03:20 PM
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
0
Lini
Telerik team
answered on 10 Oct 2008, 02:27 PM
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.
Tags
WebParts for SharePoint
Asked by
Bakthavachalam Babu
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Bakthavachalam Babu
Top achievements
Rank 1
Lini
Telerik team
Share this question
or