Sha256: 63a08d01bda40aa9ce8b683569d1e5de1d83886ed8db4fcf4e81173bf646e82f

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
guts-1.1.1 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
guts-1.1.0 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
guts-1.0.8 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
guts-1.0.7 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
guts-1.0.5 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
guts-1.0.3 app/assets/javascripts/guts/vendor/tinymce/plugins/tabfocus/plugin.min.js
tinymce-rails-4.3.3 vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js
tinymce-rails-4.3.2 vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js