If I use CuteEdit on the hardcoded active view within a multiview, the control works perfectly. If the active view is changed programmatically on a postback, the control's buttons don't work. The dropdowns work, but not the buttons.
If I use IE7, all works fine.
Getting a flat forehead - any ideas?
Sample code below:
<%@ Page Language="VB" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script runat="server">
Protected Sub lbt1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbt1.Click
Me.MultiView1.SetActiveView(Me.View0)
End Sub
Protected Sub lbt2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbt2.Click
Me.MultiView1.SetActiveView(Me.View1)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>CuteEdit 6 Test Showing Firefox Problem</title>
</head>
<body>
<form id="form1" runat="server">
<div id="tabBar" class="tabBar">
<div class="tabButton" id="tab1" runat="server">
<asp:LinkButton ID="lbt1" runat="server">Tab 1</asp:LinkButton></div>
<div class="tabButton" id="tab2" runat="server">
<asp:LinkButton ID="lbt2" runat="server">Tab 2</asp:LinkButton></div>
</div>
<br style="clear: both;" />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View0" runat="server">
<p>This is the first tab - if the MultiView's ActiveViewIndex is set to this page and you switch to tab 2, CuteEdit's buttons don't work on the second tab.</p>
Title
<asp:TextBox CssClass="inputValue" ID="cTitleLabel" runat="server" Text='' Width="500px"></asp:TextBox><br />
SubTitle
<asp:TextBox CssClass="inputValue" ID="cSubTitle" runat="server" Text='' Width="500px"></asp:TextBox><br />
</asp:View>
<asp:View ID="View1" runat="server">
<p>Type anything you like in the box and try to use any of the buttons in the toolbars. If this tab is set in the MultiView tag as the ActiveViewIndex, the buttons work. If it is set programmatically and you switch the active view using the tabs, the buttons don't work.</p>
<CE:Editor ID="cHTML" runat="server" Text='' AutoConfigure="Simple" ThemeType="Office2003">
</CE:Editor>
Note - the dropdowns work, as does the right-click menu functions, but not the regular buttons
</asp:View>
</asp:MultiView>
</form>
</body>
</html>