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

Radeditor set fontname

2 Answers 58 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jayanthi Periyasamy
Top achievements
Rank 1
Jayanthi Periyasamy asked on 07 Jul 2010, 09:20 AM
Hello,
i am using radeditor in my page..
i want to set the default font name as verdana. so i am using this css file in my page...        

<

 

CssFiles>

 

<

 

telerik:EditorCssFile Value="styles/EditorContentArea.css" />

 

</

 

CssFiles>

 

this works fine in ie and chrome but not in firefox...

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Jul 2010, 09:56 AM
Hello,

Try the client code to set the default font-family.

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


client code:
 
<script type='text/javascript'>  
  function OnClientLoad(editor, args)  
  {  
    var style = editor.get_contentArea().style;  
    style.fontFamily= 'Verdana';  
  }  
</script>  


-Shinu.
0
Rumen
Telerik team
answered on 07 Jul 2010, 12:09 PM
Hello Jayanthi,

I was unable to reproduce the problem. For your convenience I have attached my test project and video demonstrating that this feature works as expected. You can see the video at http://screencast.com/t/YmI5ODIwNzct.

Best regards,
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
Tags
Editor
Asked by
Jayanthi Periyasamy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or