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

RadEditor Setting Font

2 Answers 234 Views
Editor
This is a migrated thread and some comments may be shown as answers.
simhadri raju saripalli
Top achievements
Rank 1
simhadri raju saripalli asked on 15 Dec 2009, 11:31 AM
How to Set the Default Font to the Rad Editor

By default  it is taking the Default  System font(Times New Roman) in my system
How to add The Fonts List to the RadEditor
Please help me to find the Solution

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2009, 12:31 PM
Hi Simhadri Raju,

Here is the client-side code for setting FontFamily of RadEditor on loading the editor.

aspx:
 
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server">  
</telerik:RadEditor>  

javascript:
 
<script type="text/javascript"
function OnClientLoad(editor, args) 
    var style = editor.get_contentArea().style; 
    style.fontFamily = 'Arial';  
</script> 

-Shinu.
0
Rumen
Telerik team
answered on 16 Dec 2009, 02:18 PM
Hi Simhadri,

The following help article could be of help as well: Default Font for Editable Content.

 


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
simhadri raju saripalli
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or