CoreFiles by mySites.guru
editor_plugin_src.js30 lines, 847 bytes, from wordpress-2.0.zip
Raw History Compare with 1.5.2
md5
3d97f94c8e7e1ad347c43b40329da025
sha1
73c31894c69c8ded1a9fb6276ac8d1d405782531
sha256
d21a027b54c4dd6fab0b35b1e4b33ffe747697dfcaf2cb50694c604cada1726f
/* 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 30 releases, WordPress 2.0 to 2.1-beta3. See them all, or every version of this file.