Insert hyperlink issue

  •  01-07-2009, 8:01 AM

    Insert hyperlink issue

    Hi Adam,
     
    There is an issue with insert hyperlink, when I click on "insert hyperlink" toolbar button the Dialog to insert link appears.
     
    Using Firefox:
    as a normal practice I insert URL=www.google.com and then click ok button.
     
    It will insert a <a></a> tag in the editor with following <a href="www.google.com">www.google.com</a>
    In which the protocol(http,https.etc.,) is missing. so when I save this and render this content on some page the link appears but when I click it it will try to open http://mysite/www.google.com instead of "http://www.google.com".


     
    Using IE 7.0: same is happning,but I found that instead of using the "insert Hyperlink" button if I directly type in www.google.com it will get converted to valid anchor tag.
     
    Can you please help me so that I can have "insert hyperlink" button worked well even if I dont select the "Type"(http,https etc.,)?
     
    I tried to make some changes in "\CuteSoft_Client\CuteEditor\Dialogs\Tag\tag_a.ascx"  
     
    I have changed the following line
     
    <td colspan="3"><input type="text" id="inp_src" style="width:260px" />
     
    TO
     
    <td colspan="3"><input type="text" id="inp_src" style="width:260px" onblur="sel_protocol_change()" onmouseout="sel_protocol_change()" />
     
     
    it somewhat worked in Firefox...not 100% as when I paste the string www.google.com in URL textbox and click ok button or click on othe tabit doesnot worked in Firefox. But its not worked in IE7.0for any case.
     
    Please give some solution to this.
     
    Thanks!!
     
     
     
     
     
View Complete Thread