Opened 18 years ago
Last modified 12 years ago
#900 closed New Feature
is it possible to detect an onChange event of the FCKeditor? — at Version 3
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | SF Confirmed | Cc: | Alfonso Martínez de Lizarrondo, rotty@… |
Description (last modified by )
Is it possible to detect an onChange event of the FCKeditor?
In a TEXTAREA it is possible to place an onChange event; but after substituting to it the appropriate statements for FCKeditor
$oFCKeditor = new FCKeditor('...') ;
and so on it seems that there is no way to detect a change performed by editing. FCKeditor installs in HTML three stetements, two of them <INPUT HIDDEN ....> and one <IFRAME ...> but it seems that none of the three can be checked for change of rhe value.
Do you know any way to detect a change?
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1497731&group_id=75348&atid=543656
Change History (3)
comment:1 Changed 18 years ago by
Cc: | Alfonso Martínez de Lizarrondo rotty@… added |
---|---|
Reporter: | changed from Martin Kou to kalanag@… |
comment:2 Changed 18 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 18 years ago by
Description: | modified (diff) |
---|
You can use the IsDirty() function to check if the content has changed since last time was reset http://wiki.fckeditor.net/Developer%27s_Guide/Javascript_API And you can try to use an event listener to OnSelectionChange but use it carefully as it can be fired quite often and the IsDirty checks the innerHTML of the frame so you might find problems if the content is too large (just depends on what you call large)
Moved from SF. Original poster: alfonsoml
This would be very helpful, as we often have many instances on a page which conprise the individual elements of an article.
We'd need to be able to detect events so that we can prompt for a "Save Changes".
Moved from SF. Original poster: rotty