Domain added in Code Snippet when using I.E. 8

Last post 07-29-2010, 10:30 PM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  07-29-2010, 10:32 AM 62801

    Domain added in Code Snippet when using I.E. 8

    I have a code snippet that includes style tags in the HTML. The snippet code uses relative paths but when I add the snippet into an editor the paths are changed to absolute - adding the domain name. This only occurs in IE - the html is unchanged when using Firefox. I've also tested this with CutEditor version 6.0 and it seems to occur only using CutEditor ver. 6.6.
     
    Portion of snippet code in Common.config file...
     
    <td valign="top" style="background-image: url(../../Common/Images/Snippets/fr-body.gif); background-repeat: repeat-y;">
     
    Would be inserted using IE as...
     
    <td style="background-image: url(http://cht.yontrack.com/Common/Images/Snippets/fr-body.gif); background-repeat: repeat-y" valign="top">
     
    Would be inserted using Firefox as...
     
    <td style="background-image: url(&quot;../../Common/Images/Snippets/fr-body.gif&quot;); background-repeat: repeat-y;" valign="top">
  •  07-29-2010, 12:13 PM 62803 in reply to 62801

    Re: Domain added in Code Snippet when using I.E. 8

    We can reproduce this issue, we will investigate it and get back to you asap.
     
    Regards,
    Eric
  •  07-29-2010, 10:30 PM 62813 in reply to 62801

    Re: Domain added in Code Snippet when using I.E. 8

    Hi bbajohr,
     
    This issue is caused by the browse behaviour. We don't have the solution yet.
     
    Please use the following temporary solution.
     
    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. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head id="Head1" runat="server">   
    7.     <title>Untitled Page</title>   
    8.     <style type="text/css">     
    9.   
    10. </style>   
    11. </head>   
    12. <body>   
    13.     <form id="form1" runat="server">   
    14.         <CE:Editor ID="editor1" runat="server">   
    15.         </CE:Editor>   
    16.     </form>   
    17. </body>   
    18. </html>   
    19.   
    20.   
    21. <script>   
    22. function CuteEditor_FilterHTML(editor,code)   
    23. {   
    24.  return code.replace("url(http://cht.yontrack.com""url(../..");   
    25. }   
    26. function CuteEditor_FilterCode(editor,code)   
    27. {   
    28.  return code.replace("url(http://cht.yontrack.com""url(../..");   
    29. }   
    30. </script>  
    Regards,
     
    ken
View as RSS news feed in XML