Opened 17 years ago

Last modified 11 years ago

#900 closed New Feature

is it possible to detect an onChange event of the FCKeditor? — at Version 2

Reported by: kalanag@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Confirmed Cc: Alfonso Martínez de Lizarrondo, rotty@…

Description (last modified by Martin Kou)

s 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 (2)

comment:1 Changed 17 years ago by Martin Kou

Cc: Alfonso Martínez de Lizarrondo rotty@… added
Reporter: changed from Martin Kou to kalanag@…

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

comment:2 Changed 17 years ago by Martin Kou

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy