Re: Styles and OnCommand events clearing on postback

  •  01-22-2014, 8:15 AM

    Re: Styles and OnCommand events clearing on postback

    Hi,

     

    Can you try the example page below on your site? Does it get the same problem? If yes, can you send me this example page url? So I can check on it directly. 

     

    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. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title>example</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.         <CE:Editor ID="editor1" runat="server">  
    12.         </CE:Editor>  
    13.         <asp:Button ID="btn_PostBack" runat="server" Text="PostBack" />  
    14.         <script type="text/javascript">  
    15.         function CuteEditor_OnCommand(editor,command,ui,value)  
    16.          {  
    17.            if(command=="InsertImage")  
    18.            {  
    19.            alert("insert image");  
    20.            }  
    21.         }  
    22.         </script>  
    23.   
    24.     </form>  
    25. </body>  
    26. </html>  
     

    Regards,

     

    Ken 

View Complete Thread