Hyperlink always includes the hosting URL

Last post 09-25-2006, 11:33 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-25-2006, 9:04 AM 23029

    Hyperlink always includes the hosting URL

    Hi all,
     
    I am using Cute Editor Ver 5.3 for .NET and i am facing a problem which I would really love to have some advices.
     
    I am hosting the cute editor under this domain name; http://aaa.bbb.ccc
     
    Everyone knows that there is a insert hyperlink in the editor. I highlighted some text and inserted a hyperlink (e.g. www.hello.com) and when view it on the production page, it is dispalying http://aaa.bbb.ccc/www.hello.com.
     
    It is very difficult for my clients to accept as they are really simple users who do not even know the existence of "HTML".
     
     
    Can anyone provide some solutions on this?
     
    Thanks.
  •  09-25-2006, 11:33 AM 23036 in reply to 23029

    Re: Hyperlink always includes the hosting URL

    honda_shadow,
     
    To create links correctly in Cute Editor, you need to use the following two properties:

    Editor.RemoveServerNamesFromUrl Property
    :

    By default Internet Explorer converts all URLs in hyperlinks (anchor tags) and images (img tags) to absolute URLs with the hostname name. When this property is set to true (the default), CuteEditor strips out the local server name from all A and IMG tags if the hostname in the URL matches the current hostname.

    Editor.UseRelativeLinks Property:

    By default Internet Explorer converts all URLs in hyperlinks (anchor tags) absolute URLs. When this property is set to true, Cute Editor should strip the absolute link paths.
    Use absolute paths without the domain name.  


    To use absolute paths without the domain name, you need to set Editor.RemoveServerNamesFromUrl property to true (by default).

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="true" runat="server"></CE:Editor>

     

    Use absolute paths with the domain name.   

     


    To use absolute paths with the domain name, you need to set Editor.RemoveServerNamesFromUrl property to false and Editor.UseRelativeLinks property to false .

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="false" UseRelativeLinks="false" runat="server"></CE:Editor>

     

    Use relative paths  

     


    To relative paths, you need to set Editor.RemoveServerNamesFromUrl property to true and Editor.UseRelativeLinks property to true .

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="true" UseRelativeLinks="true" runat="server"></CE:Editor>
     
    Absolute and Relative Paths demo:
     
     
    Related article:
     

    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 as RSS news feed in XML