CssFiles.Add question

3 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    335 posts
    Member since:
    Feb 2007

    Posted 11 Nov 2013 Link to this post

    Hi Telerik people,

    In our CMS I have build a simple test page on which I placed a RadEditor and I try to put some classes in the Classes dropdown.
    The CSS is coupled from another machine through Virtual Directory.
    This is working in IE11 but not in FF, Chrome.
    I try to debug with Fiddler but to no avail.

    The page is here: http://www.insight5.nl/test.aspx

    Can you see what is happening here?

    Thanks, Marc
  2. Ianko
    Ianko avatar
    1510 posts

    Posted 13 Nov 2013 Link to this post

    Hi Marc,

    I can verify that I encounter the same problem, although from the investigation only of the application I cannot suggest a proper reason for it.

    I assume that the CSS file is loaded later than the RadEditor's initialization and after the CssFiles dropdown population. If you try testing the class names, you will see that leaving aside the encountered issue with the values, the elements set with the corresponding class name are getting the correct stylization.

    I can suggest two possible solutions for this issue:
    • Try using the CssFiles inner tag, instead of the CssFiles.Add method;
    • Try setting the CssClasses property, so that the values are hardcoded and populated correctly, no matter the CSS file loading.

    For more information about this matter you can follow these materials:

    If you need further assistance please get back to me with more details on the configuration of the RadEditor control.

    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. Fit2Page
    Fit2Page avatar
    335 posts
    Member since:
    Feb 2007

    Posted 15 Nov 2013 Link to this post

    Hi Ianko,

    This was a bit complicated problem.
    The RadEditor in our CMS was picking up stylesheets through Virtual Directory because I was setting a canonical domain in the web.config of the web.

    So...it has nothing to do with a Telerik component.
    Thanks for your time.

Back to Top