Re: Fit to Window on Coda Slider

  •  04-06-2011, 3:33 AM

    Re: Fit to Window on Coda Slider

    Hi Alex1234,
     
    Catch the full screen command and set the width and height directly.
     
    Example
     
    1. <%@ Page Language="C#" AutoEventWireup="true" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    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></title>  
    9. </head>  
    10. <body>  
    11.     <form id="form1" runat="server">  
    12.         <CE:Editor ID="editor1" runat="server" >  
    13.         </CE:Editor>  
    14.   
    15.     </form>  
    16. </body>  
    17. </html>  
    18. <script>  
    19. function CuteEditor_OnCommand(editor,command,ui,value)  
    20.  {  
    21.     if(command=="FullPage")  
    22.     {  
    23.         editor.style.width="1000px";  
    24.         editor.SetHeight(1000);  
    25.         return true;  
    26.     }  
    27.   
    28. }  
    29.   
    30. </script> 
    Regards,
     
    Ken
View Complete Thread