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

  •  05-05-2006, 2:28 PM

    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 Complete Thread