Editor Question/Challenge

4 posts, 0 answers
  1. bleutiger
    bleutiger avatar
    8 posts
    Member since:
    Oct 2008

    Posted 24 Oct 2011 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 25 Oct 2011 Link to this post

    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
  3. bleutiger
    bleutiger avatar
    8 posts
    Member since:
    Oct 2008

    Posted 25 Oct 2011 Link to this post

    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?
  4. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 25 Oct 2011 Link to this post

    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
Back to Top