Sha256: be64a31620fff97a8cee8c78a9c56c8e30b3e2f10a827ef21560100ebf38787d

Contents?: true

Size: 1.24 KB

Versions: 39

Compression:

Stored size: 1.24 KB

Contents

tinymce.PluginManager.add("tabfocus",function(a){function b(a){9!==a.keyCode||a.ctrlKey||a.altKey||a.metaKey||a.preventDefault()}function c(b){function c(c){function f(a){return"BODY"===a.nodeName||"hidden"!=a.type&&"none"!=a.style.display&&"hidden"!=a.style.visibility&&f(a.parentNode)}function i(a){return/INPUT|TEXTAREA|BUTTON/.test(a.tagName)&&tinymce.get(b.id)&&-1!=a.tabIndex&&f(a)}if(h=d.select(":input:enabled,*[tabindex]:not(iframe)"),e(h,function(b,c){return b.id==a.id?(g=c,!1):void 0}),c>0){for(j=g+1;j<h.length;j++)if(i(h[j]))return h[j]}else for(j=g-1;j>=0;j--)if(i(h[j]))return h[j];return null}var g,h,i,j;if(!(9!==b.keyCode||b.ctrlKey||b.altKey||b.metaKey||b.isDefaultPrevented())&&(i=f(a.getParam("tab_focus",a.getParam("tabfocus_elements",":prev,:next"))),1==i.length&&(i[1]=i[0],i[0]=":prev"),h=b.shiftKey?":prev"==i[0]?c(-1):d.get(i[0]):":next"==i[1]?c(1):d.get(i[1]))){var k=tinymce.get(h.id||h.name);h.id&&k?k.focus():tinymce.util.Delay.setTimeout(function(){tinymce.Env.webkit||window.focus(),h.focus()},10),b.preventDefault()}}var d=tinymce.DOM,e=tinymce.each,f=tinymce.explode;a.on("init",function(){a.inline&&tinymce.DOM.setAttrib(a.getBody(),"tabIndex",null),a.on("keyup",b),tinymce.Env.gecko?a.on("keypress keydown",c):a.on("keydown",c)})});

Version data entries

39 entries across 39 versions & 1 rubygems

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