Ticket #1364 (closed New Feature: expired)
ASP.NET control TextChanged event
| Reported by: | marcus_l@… | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Server : ASP.Net | Version: | FCKeditor 2.5 |
| Keywords: | SF HasPatch | Cc: | silverfox1948@…, jumblesale, 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
comment:2 Changed 6 years ago by alfonsoml
- Cc silverfox1948@… added
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
comment:3 Changed 5 years ago by jumblesale
- Priority changed from Normal to High
- Cc jumblesale added
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 5 years ago by alfonsoml
- Priority changed from High to 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:6 Changed 2 years ago by prashantsabhnani
- 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 20 months ago by wwalc
- Status changed from new to closed
- Resolution set to expired
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.
