diff --git a/node_autosave.js b/node_autosave.js
index e4de664..b5f8928 100644
--- a/node_autosave.js
+++ b/node_autosave.js
@@ -16,6 +16,11 @@
 
   Drupal.NodeAutosave.NodeAutosaveSave = function() {
     var saveButton = $('#edit-node-autosave-save-button-bottom');
+    if (CKEDITOR) {
+      $.each(CKEDITOR.instances, function(k,ck) { // foreach CKEDITOR instance
+        ck.updateElement(); // update the textarea element so that it is autosaved
+      });
+    }
     saveButton.parents('form.node-form').ajaxSubmit({
       url: Drupal.settings.NodeAutosave.submitUrl,
       data: {_triggering_element_name: saveButton.attr('name'), _triggering_element_value: saveButton.attr('value')},
@@ -36,4 +41,4 @@
     Drupal.attachBehaviors();
   }
 
-})(jQuery)
\ No newline at end of file
+})(jQuery)
