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

[Solved] ContentAreaCssFile

1 Answer 137 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 23 Apr 2009, 12:33 PM
I have a problem with the editor copying styles from my page which sometimes makes the editor content area unusable due to white-font on white background, for example.

Is there a way to switch off the copying of styles in code-behind, so that I can add a checkbox to the page to allow the user to choose whether styles are copied or not? I use the same code for editing lots of different types of pages and on the majority of pages the automatic copying of styles by the editor works perfectly. It is just a few pages that get the problem, so I want the feature to be selectable, either via a checkbox or a custom toolbar button, rather than permanently using an alternative CSS File for the content area.

I have tried assigning a ContentAreaCssFile in code-behind but the editor continues to copy the page styles regardless.

I am using 2008 Q3 1105.

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 24 Apr 2009, 07:53 AM
Hello Andy,

Rather than using the "system" ContentAreaCssFile, you should use the CssFiles array property.
The following demo provides more information:
http://demos.telerik.com/aspnet-ajax/editor/examples/cssfiles/defaultcs.aspx

Best wishes,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Andy
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or