aboutsummaryrefslogtreecommitdiff
path: root/data/stuff/tinymce-4.3.7/plugins/contextmenu
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 02:27:10 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 02:27:10 -0400
commitfda56e40b460ab06b6abee98ae1bc7d5f5847c9f (patch)
tree29c3ddbf0ae3d47370019fb969920b07f27fc015 /data/stuff/tinymce-4.3.7/plugins/contextmenu
parentb53fb6a4edc0e7b8a6cbfa1f6ca9db4e1895add6 (diff)
downloadold-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.tar.bz2
old-guff-fda56e40b460ab06b6abee98ae1bc7d5f5847c9f.zip
add tinymce
Diffstat (limited to 'data/stuff/tinymce-4.3.7/plugins/contextmenu')
-rw-r--r--data/stuff/tinymce-4.3.7/plugins/contextmenu/plugin.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/stuff/tinymce-4.3.7/plugins/contextmenu/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/contextmenu/plugin.min.js
new file mode 100644
index 0000000..c25e98b
--- /dev/null
+++ b/data/stuff/tinymce-4.3.7/plugins/contextmenu/plugin.min.js
@@ -0,0 +1 @@
+tinymce.PluginManager.add("contextmenu",function(a){var b,c=a.settings.contextmenu_never_use_native;a.on("contextmenu",function(d){var e,f=a.getDoc();if(!d.ctrlKey||c){if(d.preventDefault(),tinymce.Env.mac&&tinymce.Env.webkit&&2==d.button&&f.caretRangeFromPoint&&a.selection.setRng(f.caretRangeFromPoint(d.x,d.y)),e=a.settings.contextmenu||"link image inserttable | cell row column deletetable",b)b.show();else{var g=[];tinymce.each(e.split(/[ ,]/),function(b){var c=a.menuItems[b];"|"==b&&(c={text:b}),c&&(c.shortcut="",g.push(c))});for(var h=0;h<g.length;h++)"|"==g[h].text&&(0!==h&&h!=g.length-1||g.splice(h,1));b=new tinymce.ui.Menu({items:g,context:"contextmenu",classes:"contextmenu"}).renderTo(),a.on("remove",function(){b.remove(),b=null})}var i={x:d.pageX,y:d.pageY};a.inline||(i=tinymce.DOM.getPos(a.getContentAreaContainer()),i.x+=d.clientX,i.y+=d.clientY),b.moveTo(i.x,i.y)}})}); \ No newline at end of file