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

[Solved] Set fontsize dropdown initial display

1 Answer 118 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dick
Top achievements
Rank 1
Dick asked on 22 Jul 2009, 09:09 PM
How can I have the initial font size dropdown display value show as 10pt.  It currently defaults to 8.5pt after initial load of the editor's toolbar. Also I would like to do the same for the fontname dropdown value to read Ariel.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 23 Jul 2009, 08:01 AM
Hello,

Here is the code that I tried for how to apply the editor's FontSize and FontFamily from clientside. Give a try with this.

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

Thanks,
Princy.
Tags
Editor
Asked by
Dick
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or