problem with Bold,Italic and underline

Last post 06-11-2009, 7:54 PM by goh6613. 4 replies.
Sort Posts: Previous Next
  •  06-09-2009, 2:54 AM 52883

    problem with Bold,Italic and underline

    hi
     
    right now i face a problem :
     
    when is select a layer (<div) and click on 'B' to set all the text to BOLD, it work fine....
     
    but when i select that layer again and click 'B', it cannot set it font-weight to normal.....
     
    same problem happen for 'italic' and 'underline',
     
    in my case, users are allow to change the style by apply it at it layer.....
     
    can someone tell me how to set it ?
     
    thanks
  •  06-09-2009, 10:53 AM 52890 in reply to 52883

    Re: problem with Bold,Italic and underline

    I cannot reproduce this issue in this example:
     
     
    Can you try it and get back to me?

    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

  •  06-11-2009, 4:09 AM 52990 in reply to 52890

    Re: problem with Bold,Italic and underline

    We are having the same issue.
     
    We can select the text and put bold, italic and underline on, but it wont come back off again unless we remove it via the HTML view.
    We don't always give access to the HTML tab to our customers and then have the issue that they cannot remove the styling.
     
    When we put on Bold, Italic and Underline our HTML looks like this:
    <span style="font-weight: bold; font-style: italic; text-decoration: underline">As a group we specialise in: </span>
     
    When I do the same on your test site, the output looks like this:
    <strong><em><u>As a group we specialise in:</u></em></strong>
     
    Why do they differ? I thought the versions used on your test site had been superceeded by the "style" tag. This looks like where the issue lies.
     
    Cne you advise on a solution for this?
     
    Thanks
    Iain
  •  06-11-2009, 10:40 AM 53011 in reply to 52990

    Re: problem with Bold,Italic and underline

    IRB:
    We are having the same issue.
     
    We can select the text and put bold, italic and underline on, but it wont come back off again unless we remove it via the HTML view.
    We don't always give access to the HTML tab to our customers and then have the issue that they cannot remove the styling.
     
    When we put on Bold, Italic and Underline our HTML looks like this:
    <span style="font-weight: bold; font-style: italic; text-decoration: underline">As a group we specialise in: </span>
     
    When I do the same on your test site, the output looks like this:
    <strong><em><u>As a group we specialise in:</u></em></strong>
     
    Why do they differ? I thought the versions used on your test site had been superceeded by the "style" tag. This looks like where the issue lies.
     
    Cne you advise on a solution for this?
     
    Thanks
    Iain
     
    Iain,
     
    Please check this issue:
     
     
    This example is running version 6.4.
     
    If you set the following property to true, the output will be <span style="font-weight: bold; font-style: italic; text-decoration: underline">As a group we specialise in: </span>
     
    StyleWithCSS This property is used for toggling the format of generated content. An example of the differences is that the "bold" command will generate <b> if the StyleWithCSS command is false and generate css style attribute (font-weight: bold) if the StyleWithCSS command is 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

  •  06-11-2009, 7:54 PM 53039 in reply to 53011

    Re: problem with Bold,Italic and underline

    hi all,

    i solve this issue by add javascript function to remove 'bold','italic' or 'underline' at cuteeditor_oncommand

    hope this help you

    thanks

View as RSS news feed in XML