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

Set Default Font to Arial & size =1

3 Answers 206 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kunal Mittal
Top achievements
Rank 1
Kunal Mittal asked on 26 Mar 2010, 01:46 PM
Hi,

I am using the 'RadEditor to edit List Items' feature for sharepoint.

I have a share point list on which one of the column is a multi line column with full html editor support. Now i have a requirement to Set Default Font to Arial & size =1

Please let me know how i can do so?

Regards,
Kunal Mittal

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Mar 2010, 02:29 PM
Hello Kunal,

Review the following help article http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html. In short you need to  create a /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/CssEditor.css file. Then add the following style in it.
body 
    font-family: Arial; 
    font-size: 11pt; 




All the best,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kunal Mittal
Top achievements
Rank 1
answered on 30 Mar 2010, 07:21 AM
Hi,

I need to set the default font and size from the ListConfigFile.xml. what properties should i be using in that case.

Default Arial and Size 1 (through the configuration file)

More over,i could not locate the path that you mentioned.

I could only locate this path 'C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed'


And it has only one folder : 'Resources'. Inside this folder we had a number of folders and files.Some of them are :

App_Data fodler
App_GlobalResources folder
ToolImages fodler

And then it had some files like 'ConfigFile.xml' , ListConfigFile.xml, web.config and some ashx,ascx files and js files.


Please provide your response for both the options. 1st through configuration file and then 2nd from the css file that you mentioned

Regards,
Kunal Mittal
0
Stanimir
Telerik team
answered on 31 Mar 2010, 01:43 PM
Hi Kunal,

Make sure that you have the following code in the CssEditor.css:
body
{
    font-family: Arial;
    font-size: 10px;
}

Modify the respective ConfigFile.xml and ListConfigFile.xml. Add the following line:
<property name="OnClientLoad">OnClientLoad</property>

Add the following javascript method in the MOSSEditorTools.js file, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ (5.x.x is the version of RadEditor for MOSS) folder.
function OnClientLoad(editor, args)
{
    setTimeout(function()
    {
        //fire the FontName and FontSize commands
        editor.fire("FontName", { value: "Arial" });
        editor.fire("FontSize", { value: "1" });
    }, 0);
}



Kind regards,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Kunal Mittal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Kunal Mittal
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or