Difference Between Firefox and IE when Using Replace Feature

Last post 10-17-2010, 11:27 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-17-2010, 7:24 PM 64455

    Difference Between Firefox and IE when Using Replace Feature

    I frequently edit HTML using CE to remove space ( ) characters from text by using the replace feature to substitute an actual space character for " ".  When I do so under IE, the " " characters are replaced by an actual space character as desired.  However, if I use the same substitution sequence under Firefox, the spaces appear to be replaced when in HTML mode, but then are removed by CE when I switch to Normal view.  See attached video.  Do you know why CE behaves this way under Firefox?  I prefer the behavior under IE.
     
    Thanks,
    Kazzlo
     
     
     
  •  10-17-2010, 11:27 PM 64458 in reply to 64455

    Re: Difference Between Firefox and IE when Using Replace Feature

    Hi kazzlo ,
     
    Please try the example below, the html filter will replace all " " to " ".
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="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. function CuteEditor_FilterHTML(editor,code)  
    22. {  
    23.  return code.split("&nbsp;").join(" ");  
    24. }  
    25. function CuteEditor_FilterCode(editor,code)  
    26. {  
    27.  return code.split("&nbsp;").join(" ");  
    28. }  
    29. </script> 
     
    Regards,
     
    Ken
View as RSS news feed in XML