Hello,
I use Radeditor in Page content, where I have my own stylesheets.
I also have a rich text field in a document library, where I want a subset of the above stylesheets.
Is this possible?
Thanks
2 Answers, 1 is accepted
0
Accepted
Stanimir
Telerik team
answered on 25 Nov 2008, 04:28 PM
Hi Christos,
The CSS class dropdown of RadEditor is populated from the CssClasses Collection. You can predefine the styles to be shown in the CSS Class dropdown using the respective ToolsFile.xml.
For example:
<root>
<tools name="MainToolbar"enabled="true">
<tool name="ApplyClass"/>
</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>
</root>
In order to configure the CssClass collection for document library you need to modify the respective ListToolsFile.xml.
You can find these files in the following location: /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.2.3.0__1f131a624888eeed/Resources/
Note that the folder name depends on the editor version (in this case it is 5.2.3.0).