diff --git a/autosave/lang/de.js b/autosave/lang/de.js index 3fc4b3b..a74f113 100644 --- a/autosave/lang/de.js +++ b/autosave/lang/de.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'de', { + autoSaveMessage: 'Automatisch gespeichert', loadSavedContent: 'Es wurde ein autom. Gespeicherter Inhalt gefunden (vom "{0}"). Wollen Sie den Inhalt vergleichen, um dann entscheiden zu können ob der Inhalt geladen werden soll?', title: 'Temp. Gespeichert Inhalt vergleichen', loadedContent: 'Geladener Inhalt', diff --git a/autosave/lang/en.js b/autosave/lang/en.js index 1093f5f..2ca50f0 100644 --- a/autosave/lang/en.js +++ b/autosave/lang/en.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'en', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', title: 'Compare Temp. Saved Content with the Loaded Content of the Site', loadedContent: 'Loaded Content', diff --git a/autosave/lang/jp.js b/autosave/lang/jp.js index fce32b0..53b2871 100644 --- a/autosave/lang/jp.js +++ b/autosave/lang/jp.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'jp', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', title: 'Compare Temp. Saved Content with the Loaded Content of the Site', loadedContent: 'Loaded Content', diff --git a/autosave/lang/pl.js b/autosave/lang/pl.js index ead1e85..05ef357 100644 --- a/autosave/lang/pl.js +++ b/autosave/lang/pl.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'pl', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'Istnieje automatycznie zapisana wersja zawartości (z "{0}"). Otworzyć okno porównawcze, w którym można zadecydować o wczytaniu automatycznie zapisanej zawartości?', title: 'Porównanie tymczasowo zapisanej zawartości z zawartością wczytaną w witrynie', loadedContent: 'Zawartość wczytania', diff --git a/autosave/lang/pt-BR.js b/autosave/lang/pt-BR.js index a3c3553..8f611a7 100644 --- a/autosave/lang/pt-BR.js +++ b/autosave/lang/pt-BR.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'pt-BR', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', title: 'Compare Temp. Saved Content with the Loaded Content of the Site', loadedContent: 'Loaded Content', diff --git a/autosave/lang/sv.js b/autosave/lang/sv.js index 0619675..0807ac9 100644 --- a/autosave/lang/sv.js +++ b/autosave/lang/sv.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'sv', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', loadSavedContent: 'En auto-sparad version av det här innehållet (från "{0}") hittades. Vill du öppna en dialogruta för att jämföra, där du även kan välja att läsa in det auto sparade innehållet?', title: 'Jämför Temporärt sparat innehåll med det inladdade innehållet från sidan', diff --git a/autosave/lang/zh-cn.js b/autosave/lang/zh-cn.js index e21083f..66a055f 100644 --- a/autosave/lang/zh-cn.js +++ b/autosave/lang/zh-cn.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'zh', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', title: 'Compare Temp. Saved Content with the Loaded Content of the Site', loadedContent: 'Loaded Content', diff --git a/autosave/lang/zh.js b/autosave/lang/zh.js index e21083f..66a055f 100644 --- a/autosave/lang/zh.js +++ b/autosave/lang/zh.js @@ -3,6 +3,7 @@ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('autosave', 'zh', { + autoSaveMessage: 'Auto Saved', loadSavedContent: 'There is a auto-saved version of this content (From "{0}") found. Do you want to open the Compare Dialog, where you can decide to load the auto saved Content?', title: 'Compare Temp. Saved Content with the Loaded Content of the Site', loadedContent: 'Loaded Content', diff --git a/autosave/plugin.js b/autosave/plugin.js index 2e7d740..4945fb5 100644 --- a/autosave/plugin.js +++ b/autosave/plugin.js @@ -9,15 +9,15 @@ } CKEDITOR.plugins.add("autosave", { - lang: ['de', 'en', 'jp', 'pl', 'pt-BR', 'sv', 'zh', 'zh-cn'], - version: 0.6, - init: function (editor) { + lang: 'de,en,jp,pl,pt-BR,sv,zh,zh-cn', // %REMOVE_LINE_CORE% + version: 0.7, + init: function(editor) { var autoSaveKey = editor.config.autosave_SaveKey != null ? editor.config.autosave_SaveKey : 'autosave_' + window.location; var notOlderThan = editor.config.autosave_NotOlderThan != null ? editor.autosave_NotOlderThan : 1440; CKEDITOR.document.appendStyleSheet(this.path + 'css/autosave.min.css'); - CKEDITOR.scriptLoader.load(this.path + 'js/extensions.min.js', function () { + CKEDITOR.scriptLoader.load(this.path + 'js/extensions.min.js', function() { GenerateAutoSaveDialog(editor, autoSaveKey); CheckForAutoSavedContent(editor, autoSaveKey, notOlderThan); @@ -25,17 +25,19 @@ editor.on('key', startTimer); - editor.on('destroy', function () { + editor.on('destroy', function() { SaveData(autoSaveKey, editor); }); - - editor.on('uiSpace', function (event) { + + editor.on('uiSpace', function(event) { if (event.data.space == 'bottom') { - event.data.html += '