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

[Solved] Restricting CSS files

3 Answers 89 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Arjita
Top achievements
Rank 1
Arjita asked on 22 Jun 2009, 07:49 PM
Hi there,

We are using the Rad editor ..It works very nicely,My only concern is that when I click on Apply CSS it lists a long list of CSS.We do have a couple of web applications on this server and it gets the CSS from everywhere.Can I restrict the Apply CSS tab to get only the CSS from this current web application,or canI hide the CSS i don't need.

Any help would be much Appreciated .

Thanks in Advance
Arjita

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Jun 2009, 03:07 PM
Hi Arjita,

You can use the CssClasses collection of RadEditor to load only the desired classes in the Apply Class dropdown. Please, see the following help article for more information: Css Styles.

Sincerely,
Rumen
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.
0
Arjita
Top achievements
Rank 1
answered on 23 Jun 2009, 03:16 PM
Thanks for the reply Rumen..

Wouldn't doing what you suggested ,change the Apply CSS dropdown for all site collections (since we are populating the 'Apply CSS' via CssEditor.css file) ?What I am looking to do is ,like if we have 3 site collections with different CSS ,the apply CSS should only show the ones that are relevent to that site.Right now it gets me CSS from all site collections because I have entries in the Csseditor.css for all of them.

Regards
Arjita
0
Rumen
Telerik team
answered on 26 Jun 2009, 10:45 AM
Hi Arjita,

My recommendation is to set the CssFiles property and populate the Apply Css Class dropdown with your custom styles: Populating RadEditor's Apply CSS Class dropdown with custom styles.

Best regards,
Rumen
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
Arjita
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Arjita
Top achievements
Rank 1
Share this question
or