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

CSS Files

1 Answer 45 Views
Editor
This is a migrated thread and some comments may be shown as answers.
søren
Top achievements
Rank 1
søren asked on 14 Apr 2010, 04:17 AM
I can't get custom css-styles to work, so that I can add a cssfile and then use the styles from that stylesheet.

I have tried to follow the example on the website but still it doesnt work.

I have the following code:

 

<telerik:RadEditor ID="RDHtmlEditor" EditModes="All" runat="server" Width="750px"

 

 

Height="700px" EnableResize="False">

 

 

<ImageManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<DocumentManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"

 

 

DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />

 

 

<FlashManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<MediaManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"

 

 

MaxUploadFileSize="104857600" />

 

 

<TemplateManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"

 

 

DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />

 

 

<CssFiles>

 

 

<telerik:EditorCssFile Value="~/App_Themes/RabatstedetPublicTheme/StyleSheetPublic.css" />

 

 

</CssFiles>

 

 

<Content>

 

 

 

</

 

Content>

 

 

</telerik:RadEditor>

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Apr 2010, 03:21 PM
Hello søren,

Is it possible that you set the ToolsFile property in the codebehind? This could be the reason for the problem.

For your convenience I have attached my test project using your RadEditor declaration and setting which works fine on my end. The styles are populated in the Apply Class dropdown and applied to the content area.

Regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
søren
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or