summaryrefslogtreecommitdiff
path: root/site_media/js/tiny_mce/plugins/save
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-03-08 21:51:07 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2013-03-08 21:51:07 (GMT)
commitf0df4385f08b8891439476e3a0905bd43463830c (patch)
tree76dbb8fdd26fa6a3559b37fee4aa5534f311ba71 /site_media/js/tiny_mce/plugins/save
parent66de5f8ef5bc2c621f032e0cada559c085e69ea5 (diff)
removed unused tiny_mce
Diffstat (limited to 'site_media/js/tiny_mce/plugins/save')
-rw-r--r--site_media/js/tiny_mce/plugins/save/editor_plugin.js1
-rw-r--r--site_media/js/tiny_mce/plugins/save/editor_plugin_src.js101
2 files changed, 0 insertions, 102 deletions
diff --git a/site_media/js/tiny_mce/plugins/save/editor_plugin.js b/site_media/js/tiny_mce/plugins/save/editor_plugin.js
deleted file mode 100644
index 8e93996..0000000
--- a/site_media/js/tiny_mce/plugins/save/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})(); \ No newline at end of file
diff --git a/site_media/js/tiny_mce/plugins/save/editor_plugin_src.js b/site_media/js/tiny_mce/plugins/save/editor_plugin_src.js
deleted file mode 100644
index f5a3de8..0000000
--- a/site_media/js/tiny_mce/plugins/save/editor_plugin_src.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.Save', {
- init : function(ed, url) {
- var t = this;
-
- t.editor = ed;
-
- // Register commands
- ed.addCommand('mceSave', t._save, t);
- ed.addCommand('mceCancel', t._cancel, t);
-
- // Register buttons
- ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'});
- ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'});
-
- ed.onNodeChange.add(t._nodeChange, t);
- ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave');
- },
-
- getInfo : function() {
- return {
- longname : 'Save',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- // Private methods
-
- _nodeChange : function(ed, cm, n) {
- var ed = this.editor;
-
- if (ed.getParam('save_enablewhendirty')) {
- cm.setDisabled('save', !ed.isDirty());
- cm.setDisabled('cancel', !ed.isDirty());
- }
- },
-
- // Private methods
-
- _save : function() {
- var ed = this.editor, formObj, os, i, elementId;
-
- formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');
-
- if (ed.getParam("save_enablewhendirty") && !ed.isDirty())
- return;
-
- tinyMCE.triggerSave();
-
- // Use callback instead
- if (os = ed.getParam("save_onsavecallback")) {
- if (ed.execCallback('save_onsavecallback', ed)) {
- ed.startContent = tinymce.trim(ed.getContent({format : 'raw'}));
- ed.nodeChanged();
- }
-
- return;
- }
-
- if (formObj) {
- ed.isNotDirty = true;
-
- if (formObj.onsubmit == null || formObj.onsubmit() != false)
- formObj.submit();
-
- ed.nodeChanged();
- } else
- ed.windowManager.alert("Error: No form element found.");
- },
-
- _cancel : function() {
- var ed = this.editor, os, h = tinymce.trim(ed.startContent);
-
- // Use callback instead
- if (os = ed.getParam("save_oncancelcallback")) {
- ed.execCallback('save_oncancelcallback', ed);
- return;
- }
-
- ed.setContent(h);
- ed.undoManager.clear();
- ed.nodeChanged();
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('save', tinymce.plugins.Save);
-})(); \ No newline at end of file