Bold button not depressed when bold text selected

Last post 05-15-2007, 2:53 AM by Anonymous. 2 replies.
Sort Posts: Previous Next
  •  05-14-2007, 4:26 AM 29618

    Bold button not depressed when bold text selected

    Hi There,
     
    I'm using color to indicate 'boludness' in my css design. Therefore I use the following css.
     
    a,b,strong             {color:#CE0815;font-weight:normal;}
     
    When I highlight text and click the bold button, the <strong> tags go around the text and it is displayed correctly. However I cannot 'unbold' the text because the editor doesn't see the text as bold.
     
    I realise that strictly speaking the text isn't bold, however as the bold button places <strong> tags around the text, I'd expect the editor to be able to remove them.
     
    Any thoughts?
     
    Many Thanks,
    Ady
  •  05-15-2007, 2:22 AM 29659 in reply to 29618

    Re: Bold button not depressed when bold text selected

    Ady,
     
    a,b,strong             {color:#CE0815;font-weight:normal;}
     
    Should be changed to:
     
    a,b,strong             {color:#CE0815;}
     
     

    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

  •  05-15-2007, 2:53 AM 29663 in reply to 29659

    Re: Bold button not depressed when bold text selected

    Hi Adam,
     
    I realise that that is the cause, however it is not the desired result.
     
    The design of the site requires that bold text is not any thicker than normal text, instead the color of the text is the only element which should change. Therefore "font-weight:normal" is required to acheive this.
     
    I assume that your current code checks if the current style of the selected position to determine if the text is bold, all I was asking is that a provision could be made to also check if the seleted position is contained within <strong> (or <b>) tags. I wouldn't have thought this too difficult as you already show the <strong> tag in the tag list at the bottom.
     
    As the editor places <strong> tags around the text, I would hope that it could remove them too. (Now I realise that this can be acheived but removing the tag from the bottom, but many of my users won't know this.)
     
    Many Thanks,
    Ady
View as RSS news feed in XML