2 * Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
\r
6 tinymce.create('tinymce.plugins.AutoSavePlugin', {
\r
7 init : function(ed, url) {
\r
12 window.onbeforeunload = tinymce.plugins.AutoSavePlugin._beforeUnloadHandler;
\r
15 getInfo : function() {
\r
17 longname : 'Auto save',
\r
18 author : 'Moxiecode Systems AB',
\r
19 authorurl : 'http://tinymce.moxiecode.com',
\r
20 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',
\r
21 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
25 // Private plugin internal methods
\r
28 _beforeUnloadHandler : function() {
\r
31 tinymce.each(tinyMCE.editors, function(ed) {
\r
32 if (ed.getParam("fullscreen_is_enabled"))
\r
36 msg = ed.getLang("autosave.unload_msg");
\r
47 tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSavePlugin);
\r