EditorWysiwygModeCss doesn't set the default font on page load correctly?

Last post 09-09-2008, 12:41 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-09-2008, 10:23 AM 43765

    EditorWysiwygModeCss doesn't set the default font on page load correctly?

    These proposed fixes don't work:

    http://cutesoft.net/forums/post/20093.aspx
    http://cutesoft.net/forums/post/15475.aspx
    http://cutesoft.net/forums/post/17997.aspx
    http://cutesoft.net/forums/post/3541.aspx
    http://cutesoft.net/forums/post/20710.aspx
    http://cutesoft.net/forums/post/29998.aspx

    This is an example of the proposed patch implemented:

    http://cutesoft.net/forums/post/34192.aspx

    This does make the specified font the default font once the cursor is set focus to the editor but when the Editor loads on the page load the default font in the font drop down list is always Times New Roman? 
    Question:
     
    Are there any other work arounds other than the standard proposed fix using the property EditorWysiwygModeCss and setting it to a css file (which doesn't set the font displaying on page load to the font specificed in the css file).  If this is an problem with no solution, I am ok with that ... I just need to know whether I can get the specified font in my Editor.EditorWysiwygModeCss="some.css" to display when the Editor is loaded as the default font? Or if you have any other work arounds?
    Thanks,
    Eric
  •  09-09-2008, 12:41 PM 43775 in reply to 43765

    Re: EditorWysiwygModeCss doesn't set the default font on page load correctly?

    Eric,
     
    In the above example, the default font is Arial instead of Times New Roman.
     
    In the forum HTML Editor, the default font is Verdana instead of Times New Roman.
     
     
    Cute Editor uses default font of the current page. The default font of web page is Times new roman.

    If you want to change the default font from Times new roman to Verdana (http://cutesoft.net/forums/3541/ShowPost.aspx), you need to use EditorWysiwygModeCss property to specify the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported.

    For example, you can add the following code into your style sheet file: 
     
    body, td { font-family: Verdana ; font-size: 11px; font-weight: normal; text-decoration: none; }
     
    That will resolve your problems.
     
    Hope it helps.
     
    Let me know if you have any further questions.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML