Re: Any way to suppress the scroll bars in the Editor?

  •  07-09-2010, 9:38 PM

    Re: Any way to suppress the scroll bars in the Editor?

    Hi Richard,
     
    Please try the example below
     
    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.         <CE:Editor ID="editor1" runat="server" >   
    13.         </CE:Editor>   
    14.   
    15.     </form>   
    16. </body>   
    17. </html>   
    18. <script>   
    19. function CuteEditor_OnInitialized(editor)   
    20. {   
    21.     var editdoc = editor.GetDocument();   
    22.     //editdoc.body.scroll="no"; firefox does not support scroll   
    23.     editdoc.body.style.overflow="hidden";   
    24. }   
    25. </script>  
    Regards,
     
    ken
View Complete Thread