Hi,
Please try the new one below, it should work under IE11 too.
- <%@ Page Language="C#" %>
-
- <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title></title>
-
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
-
- <script type="text/javascript">
- $(document).ready(function () {
- $('.tabs a').click(function () {
- switch_tabs($(this));
- });
- switch_tabs($('.defaulttab'));
- });
-
- function switch_tabs(obj) {
- $('.tab-content').hide();
- $('.tabs a').removeClass("selected");
- var id = obj.attr("rel");
- $('#' + id).show();
- obj.addClass("selected");
- }
- </script>
-
- </head>
- <body>
- <form id="form1" runat="server">
- <div id="wrapper">
- <ul class="tabs">
- <li><a href="#" class="defaulttab" rel="tabs1">Tab #1</a></li>
- <li><a href="#" rel="tabs2">Tab #2</a></li>
- </ul>
- <div class="tab-content" id="tabs1">
- <CE:Editor ID="editor1" runat="server" Text="editor1">
- </CE:Editor>
- </div>
- <div class="tab-content" id="tabs2">
- <CE:Editor ID="editor2" runat="server" Text="editor2">
- </CE:Editor>
- </div>
- </div>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- function CuteEditor_OnInitialized(editor)
- {
- setTimeout(setHeight,200);
- }
- function setHeight()
- {
- var editor1=document.getElementById("<%= editor1.ClientID %>");
- var editor2=document.getElementById("<%= editor2.ClientID %>");
- editor1.SetHeight(1000);
- editor2.SetHeight(1000);
- }
- </script>
Regards,
Ken