Re: Setting Editor.Text value when Editor block style is display:none in FireFox

  •  05-07-2009, 6:15 AM

    Re: Setting Editor.Text value when Editor block style is display:none in FireFox

    Hi aaron,
     
    Try this example:
     
    --------------------------------------------------------------->
     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">


    <head id="Head1" runat="server">
        <title>DataList Example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <input id="Button1" type="button" value="show" onclick="show()" />
            <input id="Button3" type="button" value="hide" onclick="hide()" />
                    <div id="div1" style="display: none">
                <CE:Editor ID="Editor1" runat="server">
                </CE:Editor>
            </div>
        </form>
    </body>
    </html>

    <script>
    function show()
    {
    var div1=document.getElementById("div1");
    div1.style.display="block";
    }
    function hide()
    {
    var div1=document.getElementById("div1");
    div1.style.display="none";

    }
    function CuteEditor_OnInitialized(editor)
    {
      editor.setHTML("test");
    }
    </script>
     
     
     
    --------------------------------------------------------------->
     
     
    Regards,
     
    Ken
View Complete Thread