Re: Absolute URLs for images

  •  10-05-2008, 1:44 AM

    Re: Absolute URLs for images

    Hi DarkStar,
     
    Please use the following property:

    Editor.URLType Property
    When you're creating links to documents and images on the Web, you need to think about how you're going to link to them. CuteEditor supports three standard ways to create links:
    1. Site root relative path ( <a href="http://cutesoft.net/default.aspx">Home</a> )
    2. Absolute path ( <a href="http://cutesoft/default.aspx">Home</a> )
    3. Relative paths ( <a href="default.aspx">Home</a> or <a href="#top">Top</a>)  
    Code Example:

    <%@ Page Language="C#" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <CE:Editor ID=editor1 runat=server URLType="Absolute"></CE:Editor>
        </div>
        </form>
    </body>
    </html>
     
    Demo:
    Regards
     
    Ken
View Complete Thread