RadEditor Setting Font

3 posts, 0 answers
  1. simhadri raju saripalli
    simhadri raju saripalli avatar
    3 posts
    Member since:
    Nov 2009

    Posted 15 Dec 2009 Link to this post

    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. Shinu
    Shinu avatar
    17717 posts
    Member since:
    Mar 2007

    Posted 15 Dec 2009 Link to this post

    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.

  3. Rumen
    Admin
    Rumen avatar
    12597 posts
    Member since:
    Sep 2012

    Posted 16 Dec 2009 Link to this post

    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.

Back to Top