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

Rad Editor with Font size & Family

1 Answer 40 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mani
Top achievements
Rank 1
mani asked on 25 Jul 2009, 01:11 PM
Hi
      I used Rad Editor with BasicEmptyTool.Xml. Herewith i want to need Detault font name Tahoma & font size:12. But now the Rad Editor shows Detault Times New Romans. Let Me know how can i change the default font name & size like Tahoma and 12 size. Please do needful ASAP.....

Regards
G. Manikandan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 27 Jul 2009, 06:54 AM
Hi Manikandan,

Try the following approach in order to set the default font and font-size and see whether it helps.

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= 'Tahoma'
  style.fontSize= 20 + 'px'
</script> 

Shinu.
Tags
Editor
Asked by
mani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or