Automatically adds events on 'contenteditable' fields and returns the changed data for further processing (and saving).
In its basic implementation, the plugin method contentEditable() is attached to the parent container that has all the 'contenteditable' fields.
$("#...").contentEditable().change( myFunction );
A chained method can be attached to monitor the "change" trigger so the updates can be captured and saved.
Note that this only needs to be executed once for all included fields of the container.
The object that's returned on a "change" event is a standard jQuery Event() object with the addition of these variables:
Currently there are no parameters for this plugin.
Initiated by Makis Tracend
Distributed through Makesites.org
Originally released as a gist to address this issue
Released under the MIT license