Changing Link Styles

Last post 02-12-2009, 6:31 AM by thecoose. 6 replies.
Sort Posts: Previous Next
  •  12-10-2008, 9:11 AM 46743

    Changing Link Styles


    Hi,

    A few of our clients would like to be able to change the styles in links (colour, size, etc)
     
    However if you try this in CE it doesn't work:
    1) Create a link
    2) Select the text for thelink
    3) Apply styles
     
    http://cutesoft.net/example/general.aspx
     
    The HTML is being added outside the < a href tags and does not display on the website.  
     
    Therefore the links are only able to display in the default css style.
     
    Any chance of a fix?

    Thanks,
    Marcus
     

  •  12-10-2008, 11:40 AM 46757 in reply to 46743

    Re: Changing Link Styles

    Marcus,
     
    I cannot reproduce this issue in the following example:
     
    http://cutesoft.net/example/general.aspx

    If you select the exact link and apply the style, the style will be applied to link.

    If you select a range which contains the link and other elements, the style will be applied to the range.
     
     

    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

  •  12-11-2008, 3:21 AM 46799 in reply to 46757

    Re: Changing Link Styles

     hi,
     
    The problem is that the code created doesn't display in html.  For example this is what's produced:
     
    sdafasdf asf <span style="font-size: 24pt;"><a href="asdf.com">sadf</a></span> asdf adsf sad fa
     
    But when viewed on the actual website the style is overruled by the css for the A HREF link.
     
    To make this work the new span should be inside the A HREF I think, for example:
     
    sdafasdf asf <a href="asdf.com"><span style="font-size: 24pt;">sadf</span></a> asdf adsf sad fa
     
    Please let me know if this is possible.

    Thanks,
    Marcus
  •  01-27-2009, 10:46 AM 48102 in reply to 46799

    Re: Changing Link Styles

    Hi Adam,
     
    Please can you look at this again.  The style is going outside the href tags when it needs to go inside them to override the default page css.
     
    Thanks for your help.
     
    Regards,
    Marcus
  •  02-04-2009, 12:07 PM 48370 in reply to 48102

    Re: Changing Link Styles

    Marcus,
     
    Option 1:
     

    If you select the exact link and apply the style, the style will be applied to link.

    If you select a range which contains the link and other elements, the style will be applied to the range.
    Option 2.
     
    Set Editor.UseFontTags 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

  •  02-04-2009, 12:43 PM 48375 in reply to 48370

    Re: Changing Link Styles

    Hi Adam,
     
    This does not seem to be the case.  I have tested at:
     http://cutesoft.net/example/general.aspx
     
    After I created the link the same piece of text was STILL selected (therefore selecting the exact link and apply the style, as you say)

    here is the code I get:
     
    your <span style="font-size: 24pt;"><a href="kjnkjnkjnjk">algorithmic</a></span> and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams

    This code does not override the default CSS style for an A href tag.
     
    The code should be either:
    <a href="kjnkjnkjnjk"><span style="font-size: 24pt;">algorithmic</span></a>
     
    OR
    <a href="kjnkjnkjnjk" style="font-size: 24pt;">algorithmic</a>
     
    Please could you let me know if it's possible to change this behaviour?

    Thanks for your help,
    Marcus
     
  •  02-12-2009, 6:31 AM 48662 in reply to 48375

    Re: Changing Link Styles

    Hi Adam,
     
    Please could you have another look at this.

    Regards,
    Marcus
View as RSS news feed in XML