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

RadEditor not customizing css styles in drop down

1 Answer 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 31 May 2010, 09:00 PM
Hi, I'm having problems customizing the css styles drop down of a radeditor for dnn.

in the ConfigFile.xml I have
<configuration>
  <property name="CssFiles">/Portals/_default/Skins/MySite/skin.css</property>
  <property name="CssFiles">/Portals/_default/Skins/MySite/index.css</property>
  <property name="CssFiles">/Portals/_default/Skins/default.css</property>
  <property name="CssFiles">/Portals/_default/Skins/portal.css</property>
  <property name="CssClasses">Normal, Strong, Large</property>
</configuration>
 
and in the ToolsFile.xml I have

  <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>

in addition, I also have this in the web.config

 <add name="RadEditorProvider" type="Telerik.DNN.Providers.RadEditorProvider" CssFiles="~/Portals/_default/Skins/MySite/skin.css, ~/Portals/_default/Skins/MySite/index.css, ~/Portals/_default/Skins/default.css/, ~/Portals/_default/Skins/portal.css" providerPath="~/DesktopModules/TelerikWebUI" AutoCreatePaths="true" FilterHostExtensions="True" CssClasses="Bright, BlueSky"/>

but nothing seems to be loading correctly.

My goal is to have css styles loaded only if they exist inside the radeditor. Can somebody help me accomplish this. I'm using DNN 5.01.04.

Thanks


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Jun 2010, 03:03 PM
Hi Bill,

If you want to list more that one css file in the CssFiles property do the following:

<cssFiles>        
   <item name="~/DesktopModules/TelerikWebUI/RadEditorProvider/file1.css" />      
   <item name="~/DesktopModules/TelerikWebUI/RadEditorProvider/file2.css" />
   <item name="~/DesktopModules/TelerikWebUI/RadEditorProvider/file3.css" /> 
</cssFiles>


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