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

Use only CssEditor.css?

3 Answers 107 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Cecilia
Top achievements
Rank 1
Cecilia asked on 29 Apr 2008, 08:47 AM
Hi!

I wonder how I can get the "Apply CSS Class" drop down to only display  the classes in the CssEditor.css and not from HtmlEditorCustomStyles.css and HtmlEditorTableFormats.css.

Thanks!
Regards Cecilia

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 29 Apr 2008, 10:40 AM
Hi Cecilia,

You need to manually set the editor's CssFiles property to point to the CssEditor.css file - by doing this the HtmlEditorTableFormats.css and HtmlEditorCustomStyles.css will not be loaded.  

For more information how to set the editor's properties via Config File please review the following help article:
http://www.telerik.com/help/radeditormoss/SetPropertiesViaConfigFile.html

Here is an example that shows how to set the CssFiles property to point to a CustomFile.css:

<property name="CssFiles">   
<item>/_wpresources/RadEditorSharePoint/4.5.2.0__1f131a624888eeed/RadControls/Editor/CssEditor.css</item>   
</property>  

I hope this helps.

Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Marco Nijmeijer
Top achievements
Rank 1
answered on 11 Aug 2008, 02:29 PM
I'm trying to use this solution but can't get it to work. According to the helpfile (http://www.telerik.com/help/aspnet/editor/usingtheconfigfilexml.html) the CssFiles property isn't an '"item" element valid attributes'.

I'm using version 5.2.0.0

The text I have added to the config file:
  <property name="CssFiles">        <item>/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/RAD_WMD.css</item>   
  </property>  
0
George
Telerik team
answered on 12 Aug 2008, 07:42 AM
Hi Marco,

Please review the following KB article that shows how to achieve the desired behavior:
http://www.telerik.com/support/kb/article/b454K-htb-b454T-a-b454c-cbetemdget.aspx


I hope this helps.

Kind regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Cecilia
Top achievements
Rank 1
Answers by
George
Telerik team
Marco Nijmeijer
Top achievements
Rank 1
Share this question
or