Hi,
The information I need i probably in one of the other threads, but I'm getting a little confused.
What I'm trying to do:
I have a RadEditor in an (Ajax enabled) aspx page and I would like the 'Apply CSS Class' dropdown box to show only those css classes I have defined in a separate .css file 'CustomUserClasses.css' in the folder '~/EditorConfigs'.
The result is that the dropdown box shows all the css classes defined in the .css file that formats the page the RadEditor is in. Appearantly it finds them automaticly. But the classes I defined in CustomUserClasses.css (.important and .unimportant, just for testing purposes) aren't shown.
What I did in the code behind file is similar to this:
Because of what I read in other threads I tried to set both the CssFiles and the ContentAreaCssFile properties and I set the ToolsFile last.
I'm sure it's actually quite simple if you know what to do, but I'm not getting anywhere (on this rather warm friday afternoon :-)).
Please help.
Regards,
Mink
The information I need i probably in one of the other threads, but I'm getting a little confused.
What I'm trying to do:
I have a RadEditor in an (Ajax enabled) aspx page and I would like the 'Apply CSS Class' dropdown box to show only those css classes I have defined in a separate .css file 'CustomUserClasses.css' in the folder '~/EditorConfigs'.
The result is that the dropdown box shows all the css classes defined in the .css file that formats the page the RadEditor is in. Appearantly it finds them automaticly. But the classes I defined in CustomUserClasses.css (.important and .unimportant, just for testing purposes) aren't shown.
What I did in the code behind file is similar to this:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| rePageContentsEditor.CssFiles.Clear(); |
| rePageContentsEditor.CssFiles.Add(new EditorCssFile("~/EditorConfigs/CustomUserClasses.css")); |
| rePageContentsEditor.ContentAreaCssFile = "~/EditorConfigs/CustomUserClasses.css"; |
| rePageContentsEditor.ToolsFile = "~/EditorConfigs/TestToolsFile.xml"; |
| } |
| } |
Because of what I read in other threads I tried to set both the CssFiles and the ContentAreaCssFile properties and I set the ToolsFile last.
I'm sure it's actually quite simple if you know what to do, but I'm not getting anywhere (on this rather warm friday afternoon :-)).
Please help.
Regards,
Mink
