]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/TinyMCE/js/plugins/autosave/editor_plugin_src.js
Update TinyMCE to release 3.3.8, jQuery version
[quix0rs-gnu-social.git] / plugins / TinyMCE / js / plugins / autosave / editor_plugin_src.js
index d8cc1120fa5bf38aa1e37505cdee859683dda108..581e8f6d2c3f88aadf197b7a2b24229042400f9b 100644 (file)
                        ed.addButton(RESTORE_DRAFT, {\r
                                title : PLUGIN_NAME + ".restore_content",\r
                                onclick : function() {\r
-                                       if (ed.getContent().replace(/\s|&nbsp;|<\/?p[^>]*>|<br[^>]*>/gi, "").length > 0) {\r
+                                       if (ed.getContent({draft: true}).replace(/\s|&nbsp;|<\/?p[^>]*>|<br[^>]*>/gi, "").length > 0) {\r
                                                // Show confirm dialog if the editor isn't empty\r
                                                ed.windowManager.confirm(\r
                                                        PLUGIN_NAME + ".warning_message",\r
                                        return;\r
 \r
                                // Store contents if the contents if longer than the minlength of characters\r
-                               content = editor.getContent();\r
+                               content = editor.getContent({draft: true});\r
                                if (content.length > editor.settings.autosave_minlength) {\r
                                        expires = self.getExpDate();\r
 \r