Mercurial > public > sg101
diff media/js/tiny_mce/plugins/autosave/editor_plugin_src.js @ 247:6ed2932901fa
Update tinymce to 3.3.9
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 18 Sep 2010 19:54:11 +0000 |
parents | 149c3567fec1 |
children |
line wrap: on
line diff
--- a/media/js/tiny_mce/plugins/autosave/editor_plugin_src.js Sat Sep 18 19:39:16 2010 +0000 +++ b/media/js/tiny_mce/plugins/autosave/editor_plugin_src.js Sat Sep 18 19:54:11 2010 +0000 @@ -106,7 +106,7 @@ ed.addButton(RESTORE_DRAFT, { title : PLUGIN_NAME + ".restore_content", onclick : function() { - if (ed.getContent().replace(/\s| |<\/?p[^>]*>|<br[^>]*>/gi, "").length > 0) { + if (ed.getContent({draft: true}).replace(/\s| |<\/?p[^>]*>|<br[^>]*>/gi, "").length > 0) { // Show confirm dialog if the editor isn't empty ed.windowManager.confirm( PLUGIN_NAME + ".warning_message", @@ -303,7 +303,7 @@ return; // Store contents if the contents if longer than the minlength of characters - content = editor.getContent(); + content = editor.getContent({draft: true}); if (content.length > editor.settings.autosave_minlength) { expires = self.getExpDate();