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

CSS class styles

3 Answers 95 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Ranya Hanna
Top achievements
Rank 1
Ranya Hanna asked on 22 Feb 2008, 02:17 AM
Hi We currently have rad editor for moss 2007. We have created a new CSSstyle.css. We have modified the htmleditorcustomstyles.css to match our CSSstyle file. Currently we are getting all the class styles correct in the drop down menu.

In the table wizard on the other hand we are not getting the css styles for the tables and we are getting the other class styles repeated.

We are not sure how to show the table class styles in the table wizard.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Feb 2008, 11:09 AM
Hi Ranya,

Could you please create a CssEditor.css file in the following directory
\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.0.0__1f131a624888eeed\RadControls\Editor

and put your custom css classes in it. This file is not created by default when you install RadEditor for MOSS. However, if it is present, the editor will automatically load it. Note that the folder name depends on the editor version (in this case it is 4.5.0.0). Also do not forget to back up the CssEditor.css file when you uninstall/upgrade the editor.

The classes defined in the CssEditor.css will be loaded in the Apply Class dropdown as well as the css class dropdown of the table wizard and it will list the classes for TABLE, TR, TD and all elements.

I hope this will help you to achieve your scenario.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ranya Hanna
Top achievements
Rank 1
answered on 25 Feb 2008, 10:51 PM
We have created the CSSstyle.css under the right directory. But the table styles don't appear under the css class dropdown of the table wizard. It only appears under class dropdown. Is there a certain sentax to use in the css file to get the table class styles to appear in the table wizard.
0
Rumen
Telerik team
answered on 26 Feb 2008, 10:21 AM
Hi Ranya,

You need to rename your css file named CSSstyle.css to CssEditor.css and put it inside the \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.0.0__1f131a624888eeed\RadControls\Editor folder. Therefore RadEditor for MOSS will read the classes in the CssEditor.css  and load the table specific class in the TABLE wizard apply class dropdown.

For your convenience I have attached a video demonstrating how to achieve your goal.
I also attached my test
CssEditor.css file.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Ranya Hanna
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ranya Hanna
Top achievements
Rank 1
Share this question
or