"TextChanged" event is not fired

  •  05-16-2007, 12:40 PM

    "TextChanged" event is not fired

    Hello,
    It seems that "TextChanged" event is not being fired after text in the Cute Editor control has changed. Here is the code I'm using to wireup the event:
     
    #region Web Form Designer generated code
    override protected void OnInit(EventArgs e)
    {
       //
       // CODEGEN: This call is required by the ASP.NET Web Form Designer.
       //
       InitializeComponent();
       base.OnInit(e);
    }
    private void InitializeComponent()
    {    
       YUIEditor.TextChanged += new System.EventHandler(YUIEditor_TextChanged);
       YUIEditor.StateChanged += new CuteEditor.EditorStateChangedEventHandler(YUIEditor_StateChanged);
       this.Load += new System.EventHandler(this.Page_Load);
    }
    #endregion
     
     
    private void YUIEditor_TextChanged(object sender, System.EventArgs e)
    {
       // code
    }
    private void YUIEditor_StateChanged(object sender, CuteEditor.EditorStateChangedEventArgs e)
    {
       // code
    }
     
    "StateChanged" event fires successfully, but "TextChanged" does not.
     
    Yevgeniy
View Complete Thread