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

Problem resseting RadEditor Styles

2 Answers 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Felipe de Jesús
Top achievements
Rank 1
Felipe de Jesús asked on 27 May 2011, 09:46 PM
I tried to reset the styles of RadEditor following the instructions in this post explain, but the result is that my publishers are using the rules defined in the main stylesheet. Any idea how I could fix it?.

Like you can see in the screenshot that i send you. The problem it's that RadEditor continue load the rules defined in the global styles for the body element, like a background image, center text and no scrollbars (overflow:hidden)

This it's the code that i use to trying to reset the styles, in the head of my masterpage, before the link to the global stylesheet.

<style type="text/css">
        .reLeftVerticalSide, .reRightVerticalSide, .reToolZone, .reToolCell
        {
            background: white transparent !important;
            text-align: left;
            overflow: auto;
        }
        .RadEditor table, .reToolbar, .reToolbar li, .reTlbVertical, .reDropDownBody ul, .reDropDownBody ul li, .RadWindow table, .RadWindow table td, .RadWindow table td ul, .RadWindow table td ul li
        {
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
            list-style: none !important;
        }
        .reWrapper_corner, .reWrapper_center, .reLeftVerticalSide, .reRightVerticalSide, .reToolZone, .reEditorModes, .reResizeCell, .reToolZone table td, .RadEditor .reToolbar, .RadEditor .reEditorModes
        {
            border: 0 !important;
        }
        .reToolbar li, .reToolbar ul li, .reInsertTable .reTlbVertical .reToolbar li
        {
            float: left !important;
            clear: none !important;
            border: 0 !important;
        }
    </style>

I'm using Windows XP SP3 with Internet Explorer 6.0 and Q1 2010.

I look forward to your response

Regards,
Felipe Meléndez

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 31 May 2011, 02:38 PM
Hello Felipe,

You should set the CssFiles property and the editor will not pick up the styles from the parent page. You can see how to do that in the following help article: Content Area Appearance Problems.

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.

0
Felipe de Jesús
Top achievements
Rank 1
answered on 01 Jun 2011, 05:19 PM
Thanks for your time and your answer.

Regards,
Felipe Meléndez
Tags
Editor
Asked by
Felipe de Jesús
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Felipe de Jesús
Top achievements
Rank 1
Share this question
or