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

Adjusting font size/color for HTML editor tab

3 Answers 85 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Sep 2010, 09:14 PM
For the RadEditor in MOSS, is there any configuration or parameters to adjust the default display font size color when users switch to the HTML Editor?

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 30 Sep 2010, 07:36 AM
Hello Alex,

What you need to do is load style such as the following in the content area of RadEditor:

body
{
    font-family: Verdana;
    font-size: 9px;
}
You can find information how to do this in the following online help article: Defining custom CSS styles



Regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alex
Top achievements
Rank 1
answered on 30 Sep 2010, 08:35 PM
I tried the suggestion but when I go into edit mode for a page and switch the edit mode to HTML Editor in the RAD Editor box the font size remains the same...See picture of the font size.



0
Stanimir
Telerik team
answered on 01 Oct 2010, 12:38 PM
Hi Alex,

Here is what to do:
1. Add the following elements to the respective ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:
<property name="OnClientLoad">OnClientLoad</property>
2. Add the following javascript code to the MOSSEditorTools.js file, which is located in the mentioned above folder:
function OnClientLoad(editor, args)
{
    //here you can modify the text area style
    editor.get_textArea().style.font = "13px Verdana";
}


I hope this helps.


Kind regards,
Stanimir
the Telerik team

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