I'm having the same problem. Here's some code... the OnChanged event fires only when viewing Editor1 for the first time only... doesn't fire for Editor2 at all...
[HTML]<%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Test. aspx.vb" Inherits="Test" %>
<%@ Register Assembly="CuteE ditor" Namespace="Cute Editor" TagPrefix="CE" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form runat="server">
<asp:Wizard ID="Wizard1" runat="server">
<WizardSteps>
<asp:WizardSt ep ID="WizardStep1 " runat="server" Title="Step 1">
<CE:Editor ID="Editor1" runat="server">
</CE:Editor>
</asp:WizardStep>
<asp:WizardSt ep ID="WizardStep2 " runat="server" Title="Step 2">
<CE:Editor ID="Editor2" runat="server">
</CE:Editor>
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
</form>
</body>
<script type="text/javascript" language="javas cript">
[/HTML]
- var editor1 = document.getElementById('<%= Editor1.ClientID%>');
-
var oldColour = editor1.style.borderColor;
-
-
function CuteEditor_OnChange(editor)
-
{
-
var editdoc = editor.GetDocument();
-
alert(editdoc.body.scrollWidth>800)
-
if(editdoc.body.scrollWidth>800)
-
{
-
editor1.style.borderWidth=3;
-
editor1.style.borderColor="#FF0000";
-
}
-
else
-
{
-
editor1.style.borderColor=oldColour;
-
}
-
}
-
</script>
-
</html>