Re: FF/Chrome/Safari issue: if the HTML Editor is in a hidden layer when the page loads, it never displays properly

  •  02-17-2013, 12:06 PM

    Re: FF/Chrome/Safari issue: if the HTML Editor is in a hidden layer when the page loads, it never displays properly

    Hi,

     

    I suggest you hide the span after the editor load complete, like the example below.

     

    1. <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->  
    2. <html>  
    3. <body bottommargin="0" topmargin="0" marginheight="0" marginwidth="0">  
    4.     <form name="theForm" action="Get_HtmlContent.asp" method="post" id="Form2">  
    5.   
    6.         <span id="HideMe">  
    7.             <%  
    8.   
    9.             Dim editor  
    10.             Set editor = New CuteEditor  
    11.             editor.ID = "Editor1"  
    12.             editor.Draw()  
    13.             %>  
    14.   
    15.         </span>  
    16.         <input type="BUTTON" onclick="document.getElementById('HideMe').style.display = '';" value="Show">  
    17.         <input type="BUTTON" onclick="document.getElementById('HideMe').style.display = 'none';" value="Hide">  
    18.         <script type="text/javascript">  
    19.             function CuteEditor_OnInitialized(editor) {  
    20.                 var HideMe = document.getElementById("HideMe");  
    21.                 HideMe.style.display = "none";  
    22.             }  
    23.   
    24.         </script>  
    25.     </form>  
    26. </body>  
    27. </html>  
     

    Regards,

     

    Ken 

View Complete Thread