Re: SB Development License Image Paths

  •  09-30-2010, 11:07 PM

    Re: SB Development License Image Paths

    Dear vballboa,
     
    When you move to production enviornment, you can use filter to drop the "webapplication" from the URL, you only need add the following highlighted code in your production enviornment: 
     <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head> 
     </head>
     <body>
            <form id="Form1" runat="server">   
           <CE:Editor id="Editor1"  URLType=Absolute runat="server" ></CE:Editor>
     br />
      </form>
      <script type="text/javascript">
          function CuteEditor_FilterHTML(editor, code) {
              return code.replace("localhost/webapplication", "www.mydomain.com");
               //please change these two parameters based on your  actual situation. 

          }
          function CuteEditor_FilterCode(editor, code) {
              return code.replace("localhost/webapplication", "www.mydomain.com");
          }   
           </script>  
     </body>
    </html>
    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
      {   
      }
    </script>
     
    Thank you for asking
    Eric@cutesoft.net  
View Complete Thread