Re: Difference Between Firefox and IE when Using Replace Feature

  •  10-17-2010, 11:27 PM

    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 Complete Thread