diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-03 02:27:10 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-03 02:27:10 -0400 |
commit | fda56e40b460ab06b6abee98ae1bc7d5f5847c9f (patch) | |
tree | 29c3ddbf0ae3d47370019fb969920b07f27fc015 /data/stuff/tinymce-4.3.7/plugins/save | |
parent | b53fb6a4edc0e7b8a6cbfa1f6ca9db4e1895add6 (diff) | |
download | old-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.tar.bz2 old-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.zip |
add tinymce
Diffstat (limited to 'data/stuff/tinymce-4.3.7/plugins/save')
-rw-r--r-- | data/stuff/tinymce-4.3.7/plugins/save/plugin.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/stuff/tinymce-4.3.7/plugins/save/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/save/plugin.min.js new file mode 100644 index 0000000..bbe0ec4 --- /dev/null +++ b/data/stuff/tinymce-4.3.7/plugins/save/plugin.min.js @@ -0,0 +1 @@ +tinymce.PluginManager.add("save",function(a){function b(){var b;return b=tinymce.DOM.getParent(a.id,"form"),!a.getParam("save_enablewhendirty",!0)||a.isDirty()?(tinymce.triggerSave(),a.getParam("save_onsavecallback")?(a.execCallback("save_onsavecallback",a),void a.nodeChanged()):void(b?(a.setDirty(!1),b.onsubmit&&!b.onsubmit()||("function"==typeof b.submit?b.submit():c(a.translate("Error: Form submit field collision."))),a.nodeChanged()):c(a.translate("Error: No form element found.")))):void 0}function c(b){a.notificationManager.open({text:b,type:"error"})}function d(){var b=tinymce.trim(a.startContent);return a.getParam("save_oncancelcallback")?void a.execCallback("save_oncancelcallback",a):(a.setContent(b),a.undoManager.clear(),void a.nodeChanged())}function e(){var b=this;a.on("nodeChange dirty",function(){b.disabled(a.getParam("save_enablewhendirty",!0)&&!a.isDirty())})}a.addCommand("mceSave",b),a.addCommand("mceCancel",d),a.addButton("save",{icon:"save",text:"Save",cmd:"mceSave",disabled:!0,onPostRender:e}),a.addButton("cancel",{text:"Cancel",icon:!1,cmd:"mceCancel",disabled:!0,onPostRender:e}),a.addShortcut("Meta+S","","mceSave")});
\ No newline at end of file |