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

Editor Question/Challenge

3 Answers 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
bleutiger
Top achievements
Rank 2
bleutiger asked on 24 Oct 2011, 10:21 PM
Hello Everyone,

I have a website that has about 30+ subdomains.  (School district site)

I want to change the Styles in the RadEditor to allow people to choose styles specific to their campus without showing them all of the others. For the most part the styles would be identical other than colors and maybe font family.

We are actually using Sitefinity but I am not sure that this applies as it pertains to the editor itself.

We have a script that already grabs the url and extracts the subdomain for each campus and then adds a class to the body tag for that subdomain.

<body class="campus1">

we then have a matching css file that handles backgrounds and other campus specific things such as this

campus1.css

body.campus1 #banner { ... }

My question is can I use a similar strategy for changing the styles that a user can pick in the editor based on the subdomain?  I know I can assign a custom CSS file to the editor.  Can I do multiple CSS files?

ideas?

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Oct 2011, 01:44 PM
Hello Bleutiger,

You can use the CssFiles property to load as much CSS files as you wish. You can see the following demo for more information: Adding CSS Files to Content Area.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
bleutiger
Top achievements
Rank 2
answered on 25 Oct 2011, 02:09 PM
Thanks for the information but it doesn't really answer my question.

I only want styles relavent to a specific subdomain to show up in the editor.  How would I do that?
0
Rumen
Telerik team
answered on 25 Oct 2011, 02:32 PM
Hello Bleutiger,

RadEditor does not offer such functionality for loading styles according to the current subdomain. It is up to the developer to implement it for example by checking the domain name of the site and loading only the subdomain related css files through the CssFiles property.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
bleutiger
Top achievements
Rank 2
Answers by
Rumen
Telerik team
bleutiger
Top achievements
Rank 2
Share this question
or