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

CSS classes in RadEditorSharePoint 5.3.1.0

1 Answer 30 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Mikko Koskinen
Top achievements
Rank 1
Mikko Koskinen asked on 02 Oct 2009, 10:48 AM
I would like to use an custom ToolsFile.xml to handel the css style classes showed in RadHtmlField control. I have changes to ToolsFile.xml. I added the following lines to the end after </tools> tag.

</tools>
  <classes>
    <class name="Clear Class" value="" />
    <class name="Links Class" value="a.link" />
    <class name="Images Class" value=".img" />
    <class name="My Red Text" value=".redText" />
  </classes>

But now when I go to the edit mode of the page there is only the Clear Class in the menu. Nothing more.

What I'm I doing wrong? What is the best way to have you own css classes in the drop down menu? So that nothing else than your own classes are shown.

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Oct 2009, 06:50 AM
Hello Mikko,

Create a CssEditor.css file in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ and define your custom classes there.

You can find more information in the following help article.
1. Defining custom CSS styles.
2. External CSS Files (review the ToolsFile.xml sections).

I hope this helps.

Greetings,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
WebParts for SharePoint
Asked by
Mikko Koskinen
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or