Re: Cute Editor changing my url's

  •  06-14-2010, 1:42 AM

    Re: Cute Editor changing my url's

    Hi broble,

    Try add the below THML filter in the editor page

     <script>
    function CuteEditor_FilterHTML(editor,code)
    {
        return code.replace("url(http://www.tpmssource.com/Admin/", "url(");
    }
    function CuteEditor_FilterCode(editor,code)
    {
        return code.replace("url(http://www.tpmssource.com/Admin/", "url(");
    }
    </script>
     
    For example
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5.   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8.     <title>Untitled Page</title>   
    9. </head>   
    10. <body>   
    11.     <form id="form1" runat="server">   
    12.         <div>   
    13.             <CE:Editor ID="editor1" runat="server">   
    14.             </CE:Editor>   
    15.         </div>   
    16.     </form>   
    17. </body>   
    18. </html>   
    19.   
    20. <script>   
    21.   
    22. function CuteEditor_FilterHTML(editor,code)   
    23. {   
    24.  return code.replace("url(http://www.tpmssource.com/Admin/""url(");   
    25. }   
    26. function CuteEditor_FilterCode(editor,code)   
    27. {   
    28.  return code.replace("url(http://www.tpmssource.com/Admin/""url(");   
    29. }   
    30. </script>  
    Regards,
     
    ken

     

View Complete Thread