Default font in editor

  •  12-01-2011, 10:59 PM

    Default font in editor

    Hi,
     
    I have an urgent requirement in my application. I need to set default  font as "Arial" and font-size as "12 Px". I had discussed this with one of the support team member (not sure but I think he was "Eric" thanks a lot to him for the script) and he suggested me some script i.e.
     
    function CuteEditor_OnInitialized(editor) {
            var editor1 = document.getElementById("<%= EmailCEditor.ClientID  %>");
            editor1.ExecCommand("FontName", "", "Arial");
            editor1.ExecCommand("FontSize", "", "3");        
        }
     
    The  script is working fine and sets the default font as Arial, but the point is when I am writing content in the editor then I found that the font style is not applied to content (as it was set to Arial).
     
    I had notice in this editor where I am writing post right now having some font style but the font drop down having "Default Font" selected.  
     
    Please reply ASAP. 
     
    Thanks, in advance.  
View Complete Thread