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

[Solved] change default font for MOSS Rad Editor

7 Answers 152 Views
RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gary
Top achievements
Rank 1
gary asked on 23 Sep 2008, 08:31 PM
Hi,

I am trying to find out how to change the default font and size. I am using the Rad Editor for MOSS. I have tried the following article http://www.telerik.com/community/forums/thread/b311D-bkcehm.aspx

 but no luck it doesn't change the default font in my case.

I also cannot find file EditorContentArea.css which is mentioned in several articles. I also don't have a skins folder.

I only have the folder:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.2.0.0__1f131a624888eeed\Resources\

any help would be appreciated!

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Sep 2008, 01:45 PM
Hi Gary,

Please review the following Help article that describes how to achieve the desired behavior:
http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html

I hope this helps.

All the best,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
gary
Top achievements
Rank 1
answered on 24 Sep 2008, 04:09 PM
Hi George,

this help document describes how to add custom styles to the drop down menu, but what I want is to default the font and size when I OPEN the editor, I don't want to have to select the text and then select a custom style to format it, I need the user to start typing using the default font. I see how you can do it with the asp.net rad editor but cannot find out how to do this with the MOSS Rad Editor. Thanks.. 
0
George
Telerik team
answered on 25 Sep 2008, 11:09 AM
Hi Gary,

In general, the document describes how to apply a custom styles to the editor's content area. So, what you have to do is to create the CssEditor.css and set the following styles in it: 

CssEditor.css
body
{
    font-family: Arial, Verdana, Tahoma !important
    font-size: 10pt !important;
}

I hope this helps.

Regards,
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 20 Jan 2009, 11:37 PM
Hi,


Can I change the font style of the radEditor Contents programmatically without using CSS file?
Something like this: 
 
radEditor1.Font = (Arial)



Thanks,
Dha
0
Stanimir
Telerik team
answered on 23 Jan 2009, 03:30 PM
Hi Dharyl,

You can use javascript to set the Default font of the Editor.
1. In the Respective ConfigFile.xml located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources folder (5.3.2.0__1f131a624888eeed depends on the control version) add the following line.
<property name="OnClientLoad">OnClientLoad</property> 

2. Add the OnclientLoad function implementation.
function OnClientLoad(editor, args) 
   { 
      var style = editor.get_contentArea().style; 
      style.fontFamily"Arial"
      style.fontSize15 + "px"; 
   } 

I hope this helps.



Regards,
Stanimir
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 01 Feb 2009, 11:02 PM
Hi,


Ah ok.

I have another question. I removed the Bold, Italic and Underline tools using these options:

1)
<
Tools> 
<telerik:EditorToolGroup> 

//from here

 

</telerik:EditorToolGroup

 

</Tools> 

2)
Using OnClientLoad function.


The buttons are removed but there is something left.  i think it is the container of the buttons. How do i remove it?

Thanks!

0
Stanimir
Telerik team
answered on 04 Feb 2009, 08:42 AM
Hi Dharyl,

Could you please provide us with a couple of screen shots, so we will get better idea of the problem. You can not upload files in this forum, so you could open a support ticket and upload the files there, or upload the files in any convenient location and just give us url from where we can download them.

Thank you.


Sincerely yours,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
RadControls
Asked by
gary
Top achievements
Rank 1
Answers by
George
Telerik team
gary
Top achievements
Rank 1
dharyl
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or