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

Case sesitive css class in tools file and chrome

3 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 30 Apr 2013, 07:11 AM
Hello,

I have the following scenario:
1. in the editor css file:
a.lightBox-link {
color:Red;
}
2. in the toolsfile.xml:
<classes>
<class name="Lightbox Link" value="a.lightBox-link" />
</classes>
3. Now open the editor in chrome (v. 26.0.1410.64) and check the ApplyCssClass drop down - it does not contain Lightbox Link. But it works fine in IE9
If I change the toolsfile.xml content to value="a.lightbox-link" (lowercase b) then it works in chrome but not in IE.

Does the editor treats css class names as case sensitive?
Can this be fixed?

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 01 May 2013, 11:34 AM
Hello Ivan,

This problem is not directly related to RadEditor but is a bug in the Chrome browser. Unfortunately, we are not aware of any stable workaround for the problem.
https://code.google.com/p/chromium/issues/detail?id=67782&q=commentby%3Ablizzard&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified

Could you please try to configure the editor to utilize DIV as a content area (set ContentAreaMode property to Div) and see if the problem still occurs?

All the best,
Dobromir
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
Ivan
Top achievements
Rank 1
answered on 07 May 2013, 09:27 AM
If I set ContentAreaMode="Div" for the RadEditor control then ApplyCss drop down becomes empty.
0
Dobromir
Telerik team
answered on 10 May 2013, 07:06 AM
Hi Ivan,

The only case where the ApplyClass drop down will not be populated with classes is if the you load CSS files using <CssFiles> inner tag due to a limitation of the Div - Mode of RadEditor - control cannot load external CSS files for its content area when ContentAreaMode is set to Div.

Could you please provide more detailed information regarding your specific scenario so we can try to provide a suitable solution for this issue?

All the best,
Dobromir
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
Ivan
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or