Opened 17 years ago
Closed 13 years ago
#1364 closed New Feature (expired)
ASP.NET control TextChanged event
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ASP.Net | Version: | FCKeditor 2.5 |
Keywords: | SF HasPatch | Cc: | silverfox1948@…, J, prashantsabhnani@… |
Description
Index: FCKeditor.cs =================================================================== --- FCKeditor.cs (revision 118) +++ FCKeditor.cs (working copy) @@ -390,7 +390,7 @@ #region Postback Handling - public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection) + public virtual bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection) { if ( postCollection[postDataKey] != this.Value ) { @@ -400,11 +400,22 @@ return false ; } - public void RaisePostDataChangedEvent() + public virtual void RaisePostDataChangedEvent() { - // Do nothing + OnTextChanged(EventArgs.Empty); } #endregion - } + + #region Event Handlers + + public event EventHandler TextChanged; + + protected void OnTextChanged(EventArgs e) + { + if (TextChanged != null) TextChanged(this, e); + } + + #endregion + } }
Moved from sourceforge
Original author: Marcus L
Change History (7)
comment:1 Changed 17 years ago by
Reporter: | changed from Alfonso Martínez de Lizarrondo to marcus_l@… |
---|
comment:2 Changed 17 years ago by
Cc: | silverfox1948@… added |
---|
comment:3 Changed 16 years ago by
Cc: | J added |
---|---|
Priority: | Normal → High |
Is anything being done on adding an OnTextChanged event or is there a patch I can do myself? I can't find a FCKeditor.cs file to make any changes to in my build. This would be a really useful feature.
comment:4 Changed 16 years ago by
Priority: | High → Normal |
---|
@jumblesale
Please, don't change the priority of bugs unless you are the one working on them. You need to get the FCKeditor.net source to get the file and try the proposed patch.
comment:5 Changed 14 years ago by
Version: | → FCKeditor 2.5 |
---|
comment:6 Changed 14 years ago by
Cc: | prashantsabhnani@… added |
---|
The CK Editor ASP.NET control still does not have a OnTextChanged event like the normal asp:TextBox control in ASP.NET.
When will this event be added ?
comment:7 Changed 13 years ago by
Resolution: | → expired |
---|---|
Status: | new → closed |
There is a new ASP.NET control available: CKEditor for ASP.NET. The issue is no longer valid as the new CKEditor ASP.NET control will introduce this feature in version 3.6.2 (see #7850) and the old control is no longer maintained.
It would be VERY nice to have an event raised on post- back that indicates that the text in the editor has changed.
Moved from sourceforge
Original author: Steven Archibald