Re: Customize the clicks for Image Gallery

  •  07-01-2014, 9:22 AM

    Re: Customize the clicks for Image Gallery

    Hi,

     

    Please try the example page below.

     

    1. <%@ Page Language="C#" MaintainScrollPositionOnPostback="true" %>  
    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.     </form>  
    14. </body>  
    15. </html>  
    16.   
    17. <script type="text/javascript">        
    18.   
    19. function CuteEditor_OnCommand(editor,command,ui,value)    
    20.  {  
    21.     if(command=="InsertImage")    
    22.     {    
    23.         alert("insert image dialog");  
    24.        //return true;    
    25.     }    
    26.         if(command=="ImageGalleryByBrowsing")    
    27.     {    
    28.         alert("insert gallery dialog");  
    29.        //return true;    
    30.     }    
    31.         
    32. }    
    33. </script>  
     

    Regards,

     

    Ken 

View Complete Thread