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

Cannot get ContentAreaCssFile to work!!!!

1 Answer 39 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 12 Nov 2008, 05:19 PM
Hi,
   I am using Telerik controls RadAjax  2008.2.1001.35. I am programmatically creating the RadEditor on my ASPX page. 
I cannot get the EditorContentArea.css to be applied to the RadEditor.

Thanks, Andy

            mradEditor.AutoResizeHeight = False
            mradEditor.TabIndex = Me.TabOrder
            mradEditor.EnableEmbeddedSkins = False
            mradEditor.Skin = "Default"         'As of 2008.2.1001.35 The Outlook2007 skin still does not work with the RadEditor solution for 1px border
            mradEditor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.ShowOnFocus
            mradEditor.ToolsWidth = Unit.Pixel(500)   ' 2008.2.723.35 needed as my workaround for the RadEditor defaults the toolbar to 0px wide
            mradEditor.EditModes = Telerik.Web.UI.EditModes.Design
            mradEditor.ToolsFile = "~/App_Data/RadEditor/NotesFieldEditorToolbars.xml"
            mradEditor.ContentAreaCssFile = "~/Skins/Default/EditorContentArea.css"

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Nov 2008, 05:46 PM
Hi Andy,

The recommended way for customizing the content area appearance is by setting the CssFiles property, because the editor will not pick up the styles from the parent page.

Please, try the following code:
RadEditor1.CssFiles.Add("~/Skins/Default/EditorContentArea.css")



Greetings,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Andy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or