Hi,
You do not need to fire the "CuteEditor_OnInitialized", it will fire automatically when the editor load. For now has no way to fire it in code, so you must wait for the page load. What I mean to hide the container when the editor load, is like the example below. I hide the div1 in the "CuteEditor_OnInitialized".
- <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <!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></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div id="div1">
- <CE:Editor ID="editor1" runat="server" />
- </div>
- </form>
- </body>
- </html>
-
- <script>
- function CuteEditor_OnInitialized(editor)
- {
-
- var div1=document.getElementById("div1");
- div1.style.display="none";
- }
- </script>
Regards,
Ken