CoreFiles by mySites.guru
editor_plugin_src.js30 lines, 817 bytes, from wordpress-2.1.zip
Raw History Compare with 2.0.11
md5
5693ef7bb68cb84f97cfdbcb9df64d07
sha1
8b665f280b2fe39d1178c0e72e4b7b42e1ded32c
sha256
a8f95166d0329481db6f8d6120901ec7e18b976ad35241d4702139395e2a6de9
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('autosave', 'en,sv,cs,he,no,hu,de,da,ru,ru_KOI8-R,ru_UTF-8,fi,cy,es,is,pl');

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 (!tinyMCE.isInstance(inst))
			continue;

		if (inst.isDirty())
			return msg;
	}

	return;
}

window.onbeforeunload = TinyMCE_autosave_beforeUnloadHandler;

The same content is in 34 releases, WordPress 2.1-beta4 to 2.3.3. See them all, or every version of this file.