Hi,
Maybe you can try the way below to handle different editor in OnInitialized api.
- <%@ Page Language="C#" ValidateRequest="false" %>
-
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <!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>GetPlainText</title>
- </head>
- <body id="">
- <form id="form1" runat="server">
- <CE:Editor ID="Editor1" runat="server">
- </CE:Editor>
- <CE:Editor ID="Editor2" runat="server">
- </CE:Editor>
- <CE:Editor ID="Editor3" runat="server">
- </CE:Editor>
- </form>
- </body>
- </html>
-
- <script type="text/javascript">
- var editor1 = document.getElementById('<%= Editor1.ClientID%>');
- var editor2 = document.getElementById('<%= Editor2.ClientID%>');
- var editor3 = document.getElementById('<%= Editor3.ClientID%>');
- function CuteEditor_OnInitialized(editor)
- {
- setContent();
-
- }
- function setContent()
- {
- editor1.SetHTML("abc");
- editor2.SetHTML("def");
- editor3.SetHTML("ghi");
- }
- </script>
Regards,
Ken