Wordpress/wp-includes/js/tinymce/plugins/autosave/editor_plugin.js
Matt Mullenweg 52c8a27143 Updating to latest TinyMCE
git-svn-id: https://develop.svn.wordpress.org/trunk@2916 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-26 06:52:30 +00:00

2 lines
641 B
JavaScript

/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('autosave','en,sv,cs');function TinyMCE_autosave_getInfo(){return{longname:'Auto save',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_autosave.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_autosave_beforeUnloadHandler(){var msg=tinyMCE.getLang("lang_autosave_unload_msg");var anyDirty=false;for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];if(inst.isDirty())return msg;}return;}window.onbeforeunload=TinyMCE_autosave_beforeUnloadHandler;