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

CssFiles.Add question

2 Answers 18 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
Fit2Page asked on 11 Nov 2013, 02:22 PM
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 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 13 Nov 2013, 05:56 PM
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.


Regards,
Ianko
Telerik
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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 15 Nov 2013, 08:43 AM
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.

Marc
Tags
Editor
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Ianko
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or