Hi JPenn,
If you want to replace the tab part with div, please try the example below. You still can get the content of editor if use "
visibility: hidden".
- <%@ Page Language="C#" %>
-
- <%@ Register Namespace="CuteEditor" Assembly="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 runat="server">
- <title>example</title>
-
- <script runat="server">
- protected override void OnLoad(EventArgs e)
- {
- editor1.Text = "Is editor1";
- editor2.Text = "Is editor2";
- base.OnLoad(e);
- }
- </script>
-
- </head>
- <body>
- <form id="theForm" runat="server">
- <div id="div1" style="visibility: hidden">
- <CE:Editor ID="editor1" runat="server">
- </CE:Editor>
- </div>
- <div id="div2">
- <CE:Editor ID="editor2" runat="server">
- </CE:Editor>
- </div>
- <input type="button" value="GetEditor1Content" onclick="getEditor1Content()" />
- <input type="button" value="GetEditor2Content" onclick="getEditor2Content()" />
- </form>
- </body>
- </html>
-
- <script>
- function getEditor1Content()
- {
- var editor1=document.getElementById("<%= editor1.ClientID %>");
- alert(editor1.getHTML());
- }
- function getEditor2Content()
- {
- var editor2=document.getElementById("<%= editor2.ClientID %>");
- alert(editor2.getHTML());
- }
- </script>
Regards,
ken