svn commit: r794352 - in /lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler: ./ editor_plugin.js langs/ langs/de.js langs/en.js readme.txt

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: ragaller
Date: Wed Jul 15 18:39:00 2009
New Revision: 794352

URL: http://svn.apache.org/viewvc?rev=794352&view=rev
Log:
unloadhandler module for tinymce, not yet active

Added:
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js   (with props)
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js   (with props)
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js   (with props)
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt   (with props)

Added: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js?rev=794352&view=auto
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js (added)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js Wed Jul 15 18:39:00 2009
@@ -0,0 +1,43 @@
+/*
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+*/
+
+/* Import plugin specific language pack 
+ * this could be written in a more generic way (possibly in the editors module) */
+tinyMCE.importPluginLanguagePack('unloadhandler');
+
+var TinyMCE_UnloadHandlerPlugin = {
+  getInfo : function() {
+    return {
+      longname : 'Unload Handler Plugin for Lenya / TinyMCE',
+      author : 'lenya',
+      authorurl : 'http://lenya.apache.org',
+      infourl : 'http://lenya.apache.org',
+      version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
+    };
+  },
+
+  // Private plugin internal methods
+
+  _beforeUnloadHandler : function() {
+    var msg = tinyMCE.getLang("lang_unloadhandler_unload_msg");
+    return msg;
+  }
+};
+
+window.onbeforeunload = TinyMCE_UnloadHandlerPlugin._beforeUnloadHandler;
+
+tinyMCE.addPlugin("unloadhandler", TinyMCE_UnloadHandlerPlugin);

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/editor_plugin.js
------------------------------------------------------------------------------
    svn:executable = *

Added: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js?rev=794352&view=auto
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js (added)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js Wed Jul 15 18:39:00 2009
@@ -0,0 +1,22 @@
+/*
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+*/
+
+// DE lang variables
+
+tinyMCE.addToLang('',{
+unloadhandler_unload_msg : 'Achtung: wenn Sie den Editor mit OK verlassen verlieren Sie alle Änderungen und das Dokument verbleibt «checked out».'
+});

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/de.js
------------------------------------------------------------------------------
    svn:executable = *

Added: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js?rev=794352&view=auto
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js (added)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js Wed Jul 15 18:39:00 2009
@@ -0,0 +1,22 @@
+/*
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+*/
+
+// EN lang variables
+
+tinyMCE.addToLang('',{
+unloadhandler_unload_msg : 'Warning: if you leave the editor by clicking OK edits will be lost and the document will be left checked out.'
+});

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/langs/en.js
------------------------------------------------------------------------------
    svn:executable = *

Added: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt?rev=794352&view=auto
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt (added)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt Wed Jul 15 18:39:00 2009
@@ -0,0 +1 @@
+Unload handler for lenya/tinymce
\ No newline at end of file

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/resources/tinymce/jscripts/tiny_mce/plugins/unloadhandler/readme.txt
------------------------------------------------------------------------------
    svn:executable = *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.