Sha256: 11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a

Contents?: true

Size: 1.11 KB

Versions: 17

Compression:

Stored size: 1.11 KB

Contents

tinymce.PluginManager.add("contextmenu",function(e){var t,n,r=e.settings.contextmenu_never_use_native,i=function(e){return e.ctrlKey&&!r},o=function(){return tinymce.Env.mac&&tinymce.Env.webkit},a=function(){return n===!0};return e.on("mousedown",function(t){o()&&2===t.button&&!i(t)&&e.selection.isCollapsed()&&e.once("contextmenu",function(t){e.selection.placeCaretAt(t.clientX,t.clientY)})}),e.on("contextmenu",function(r){var o;if(!i(r)){if(r.preventDefault(),o=e.settings.contextmenu||"link openlink image inserttable | cell row column deletetable",t)t.show();else{var a=[];tinymce.each(o.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"==t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var s=0;s<a.length;s++)"|"==a[s].text&&(0!==s&&s!=a.length-1||a.splice(s,1));t=new tinymce.ui.Menu({items:a,context:"contextmenu",classes:"contextmenu"}).renderTo(),t.on("hide",function(e){e.control===this&&(n=!1)}),e.on("remove",function(){t.remove(),t=null})}var l={x:r.pageX,y:r.pageY};e.inline||(l=tinymce.DOM.getPos(e.getContentAreaContainer()),l.x+=r.clientX,l.y+=r.clientY),t.moveTo(l.x,l.y),n=!0}}),{isContextMenuVisible:a}});

Version data entries

17 entries across 14 versions & 1 rubygems

Version Path
optimacms-0.3.15 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.12 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.11 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.8 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.7 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.6 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.5 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.2.26 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.2.25 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.2.24 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.4 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.2 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.3.2 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin.js
optimacms-0.3.1 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin.js
optimacms-0.3.1 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.2.23 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin-11ad7a2ff14cc47d12a3dd0170741590335e606b0efaa8dc77837409e54afa0a.js
optimacms-0.2.23 spec/dummy/public/assets/tinymce/plugins/contextmenu/plugin.js