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

RadEditor and styles

1 Answer 71 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Walter Mauricci
Top achievements
Rank 1
Walter Mauricci asked on 01 Jun 2010, 12:26 PM
So, I have replaced the RichHtmlField with RadHtmlField in my pages. I want the RadHtmlField to be as similar to my old field as possible, i.e. follow the same styles etc. My first problem is that I get the wrong style when editing. However, after saving the content and looking at it out of editing view, it looks ok. I found information (http://blogs.salmanghani.info/?tag=telerik-radeditor) that I needed to include the property CssFiles in ConfigFile.xml and point to my custom css. This has no effect whatsoever, what to do?

Also, in my old RichHtmlField I have a number of predefined styles the user can choose from. I guess this corresponds to the Apply Css Class dropdown? I followed the instructions on this link (http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html), but again, nothing happens. All I ever see in the dropdown is "Clear Class".

Thanks in advance,
Helena

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 01 Jun 2010, 12:41 PM
Hi Walter,

The blog that you found regards the classic ASP.NET version of RadEditor for MOSS 4.x.x. It is not valid for ASP.NET AJAX version of the control (5.x.x).

If you want to add css styles to the RadEditor content area indeed this is the article that you have to review: http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html. Just add CssEditor.css file to the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder and defince the classes in it. In addition review the following online help article: http://www.telerik.com/help/aspnet-ajax/externalcssfiles.html.

Regarding the Apply Css Class dropdown review the following online help article:
http://www.telerik.com/help/aspnet-ajax/css_styles.html.

I you experience any problems send me the ToolsFile.xml, ListToolsFile.xml, ConfigFile.xml, ListConfigFile.xml and CssEditor.css (if you created one) files. I will check them out and advise you further.

Thank you.


Sincerely yours,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Walter Mauricci
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or