Ticket #138 (assigned enhancement)
onchange or isdirty functionality
Reported by: | weswinham | Owned by: | mr_lundis |
---|---|---|---|
Priority: | major | Milestone: | 2.0 |
Component: | editor | Version: | trunk |
Keywords: | Cc: |
Description
I'm looking to implement an auto-save style bit of functionality to my editor. The problem I'm having is that I can't figure a simple way to tell if the content of the editor have changed through any other method than checking the calling update() and checking the new contents versus the old (which is way more computationally expensive than it needs to be, especially on long documents). A simple variable/function that keeps track of whether or not there have been any changes to the editor since the last update() would be very helpful.
TinyMCE calls this isDirty and I believe it will help solve the issues that these people are running in to also. It's not as elegant as a real onchange event, but it's effective for use in polling for changes.