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

  •  11-09-2011, 5:36 PM

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

    I seem to have a conflict with another script already on the page (see below). Also, is there a reason for placing the JavaScript at the bottom of the html and not between the HEAD tags?
     
    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html>
    <head>
        <title>ASP Editor Demo</title>

    <script>

    function CuteEditor_OnInitialized(editor)
    {
        var editor1 = document.getElementById('CE_Editor1_ID');
        var editdoc = editor1.GetDocument();
        //set border when editor load
        editdoc.body.style.border="solid 1px red";
    }

    function getBorder()
    {
       var editor1 = document.getElementById('CE_Editor1_ID');
       var editdoc = editor1.GetDocument();
       //get border
       alert(editdoc.body.style.border);
    }     

    function scrollOff()   
    {   
        var editor1 = document.getElementById('CE_Editor1_ID');
        var editdoc = editor1.GetDocument();    
        editdoc.body.style.overflow="hidden";    
    }    
          
    </script>

    </head>
    <body bgcolor="#FFFFFF" onLoad="scrollOff();">

        <form name="theForm" method="post">
            <div>
                <%   
           Dim editor   
           Set editor = New CuteEditor   
           editor.ID = "Editor1"  
           editor.Text = "Hello World"  
           editor.EditCompleteDocument=true
           editor.Draw()   
                %>
            </div>
        </form>
    </body>
    </html>
     
View Complete Thread