Home

tarsolya edited this page Sep 13, 2010 · 4 revisions
Clone this wiki locally

jQuery Observer plugin for CKEDITOR 3

by Tarsoly András (tarsoly[dot]andras[at]xpnindustries[dot]com)
Licensed under the MIT License.

Usage

$("#form").observe(10, function() { console.log("It's dirty!") });

Checks #form each 10 seconds. If the form has changes since last time including CKEDITOR instances, the value of the original textarea elements gets updated from the respective CKEDITOR instance, then the callback gets fired.

Great for implementing autosave feature via Ajax in combination with jQuery Forms.

TODO

  • Make specific CKEDITOR instances targetable.