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

Howto change default font in WSS only environment

6 Answers 161 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Plopper
Top achievements
Rank 1
Plopper asked on 28 Jul 2008, 02:56 PM
After having read dozens of articles in this forum on similar topics, I realized that it just was not there: I'm desparately seeking an answer on how to change the default (Times New Roman, size 3, black) font in the RadEditor for MOSS, when it is deployed in a WSSv3-only scenario.

I am using the latest version of RadEditor MOSS (version 5.1).
I am using (and testing) the editor in a WSS List.

I find it very hard to find helpful information on WSS only deployments - could you please set up a separate hive for that?

6 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 29 Jul 2008, 02:17 PM
Hi Plopper,

You can easily achieve the desired behavior by creating the /wpresources/RadEditorSharePoint/5.1.0.0__1f131a624888eeed/Resources/CssEditor.css file and in it set the styles to be applied to the editor's content e.g.
body
{
    color: black !important;
    font-family: TimesNewRoman !important; 
    font-size: 10pt !important;
}

For more information on this please review the following help article:
http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Plopper
Top achievements
Rank 1
answered on 30 Jul 2008, 02:47 PM
Hi George,

Thank you for your quick reply. I did not realize that the css file had to be called 'CssEditor.css'. (I tried to configure some other css file through the CssFiles propoerty of the ListConfigFile.xml file, but apparently that does not work that way).

Your solution worked for setting the default font - thanx!
0
Juha Pitkänen
Top achievements
Rank 1
answered on 06 Oct 2008, 12:37 PM
Hello George,

I don't seem to be able to change the default font for RadEditorMOSS 5.2.2.0 even if I follow the instructions you gave to Plopper by creating the CssEditor.css to \wpresources\RadEditorSharePoint\5.2.2.0__1f131a624888eeed\Resources and defining the wanted font-family with the !important directive. I'm using FieldEditor's RadHtmlField.

I've also tried to define font names to ToolsFile.xml (http://www.telerik.com/help/aspnet-ajax/fonts.html) and even tried to modify RadEditor.js with Telerik.EnableEmbeddedSkins swtiched to false with no success.

Am I missing something here.

Regards, Juha


0
Juha Pitkänen
Top achievements
Rank 1
answered on 06 Oct 2008, 12:50 PM
Hi again,

Got it to work after iisreset. Thanks for the original instructions.

Juha
0
George
Telerik team
answered on 06 Oct 2008, 01:45 PM
Hi Juha,

I am glad that the issue you were facing is now resolved.

Have a great day,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
dharyl
Top achievements
Rank 1
answered on 21 Jan 2009, 12:05 AM
 
Tags
WebParts for SharePoint
Asked by
Plopper
Top achievements
Rank 1
Answers by
George
Telerik team
Plopper
Top achievements
Rank 1
Juha Pitkänen
Top achievements
Rank 1
dharyl
Top achievements
Rank 1
Share this question
or