Re: Automatic Resize

  •  02-01-2013, 2:09 PM

    Re: Automatic Resize

    Hi gim-matt,

     

    You can try the way below, achieve it by javascript code.

     

    1. <%@ Page Language="c#" %>  
    2.   
    3. <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>  
    4.   
    5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head>  
    8.     <title>example</title>  
    9. </head>  
    10. <body>  
    11.     <form id="Form1" method="post" runat="server">  
    12.         <RTE:Editor ID="editor1" runat="server"  Width="100%"/>  
    13.     </form>  
    14. </body>  
    15. </html>  
    16. <script type="text/javascript">  
    17.     setInterval("refreshTime()", 1000);  
    18.     var config;  
    19.     function RichTextEditor_OnLoader(loader) {  
    20.         config = loader._config;  
    21.     }  
    22.     function refreshTime() {  
    23.         var skinctrl = config.skin_control;  
    24.         skinctrl.set_width(window.innerWidth);  
    25.     }  
    26. </script>  
     

    Regards,

     

    Ken 

View Complete Thread