Font reverts back to default font after changing size ISSUE

Last post 05-05-2006, 2:28 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  05-03-2006, 5:07 PM 18789

    Font reverts back to default font after changing size ISSUE

    When using the CuteEditor, the font reverts back to the default font after changing the font size.  For example, if the default font is Arial and the font is changed to Verdana when editing text, then the size is changed, the font will revert back to Arial.  Please advise.
  •  05-03-2006, 8:38 PM 18791 in reply to 18789

    Re: Font reverts back to default font after changing size ISSUE

  •  05-05-2006, 3:13 AM 18856 in reply to 18791

    Re: Font reverts back to default font after changing size ISSUE

    It's not a stylesheet issue, the font reverts back to the default when the size is changed.  Please advise.
  •  05-05-2006, 2:28 PM 18872 in reply to 18789

    Re: Font reverts back to default font after changing size ISSUE

    rwarren,
     
    Sorry for the wrong answer.
     
    Let me explain this in details.
     

    For example, you type "Hello World" into the editor.
     
    Select it and chaneg the font name to Comic sans MS, you will get:

    <span style="FONT-FAMILY: Comic Sans MS">Hello World</span>
     
     
     
    If you select the above HTML code and change the font site, you have two situations:
     
    1. The select range is same. You will get:

    <span style="FONT-SIZE: 12pt; FONT-FAMILY: Comic Sans MS">Hello World</span>
     
     
     
    2. If the select range is not same, CuteEditor will reformat the selection.
     
    For example, what you select is <span style="FONT-FAMILY: Comic Sans MS">Hello World</span> testtest..
     
    In this situation, CuteEditor will generate the following HTML code:
     
    <span style="FONT-SIZE: 14pt">Hello World testtest</span>
     
    Instead of the nested HTML code like this:
     
    <span style="FONT-SIZE: 14pt"><span style="FONT-FAMILY: Comic Sans MS">Hello World</span> testtest..</span>
     
     
     
    It's the best solution we can find to help our client to generate clean HTML/XHTML code. Hope it helps.
     
    If you don't agree this solution, please check Editor.UseFontTags Property.
     
    And set Editor.UseFontTags Property to true and use font tags instead.

    Editor.UseFontTags Property

    Font tags are now deprecated, meaning that they aren't used any more and will cause validation errors. Many legacy pages still contain style information in font tags. By default Cute Editor converts font tags to span tags. <font face="times" size="4" color="#ffffff">your text</font> would be replaced with <span style="font-family: times, serif; font-size: 110%; color:#ffffff">your text</span> If you still want to use font tags, you can set this property to true.
     
     

    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