Sha256: 127972ffcc50e1fb517aa16001cd8d15c1c64b442c181b2fab003c830bd35982

Contents?: true

Size: 892 Bytes

Versions: 39

Compression:

Stored size: 892 Bytes

Contents

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)}})});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.19 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.18 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.17 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.16 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.15 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.14 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.13 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.12 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.11 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.10 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.9 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.8 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.7 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.6 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.5 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.4 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.3 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.2 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js
wbase-0.3.1 lib/vendor/admin/tinymce/plugins/contextmenu/plugin.min.js