Sha256: 3aa2e7cb54763e11b767011c06792a46147dbe2debb34c91f15ad9970750beb8

Contents?: true

Size: 1.63 KB

Versions: 305

Compression:

Stored size: 1.63 KB

Contents

(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create("tinymce.plugins.TabFocusPlugin",{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(t){n=c.select(":input:enabled,*[tabindex]:not(iframe)");function s(v){return v.nodeName==="BODY"||(v.type!="hidden"&&!(v.style.display=="none")&&!(v.style.visibility=="hidden")&&s(v.parentNode))}function i(v){return v.attributes.tabIndex.specified||v.nodeName=="INPUT"||v.nodeName=="TEXTAREA"}function u(){return tinymce.isIE6||tinymce.isIE7}function r(v){return((!u()||i(v)))&&v.getAttribute("tabindex")!="-1"&&s(v)}d(n,function(w,v){if(w.id==l.id){j=v;return false}});if(t>0){for(m=j+1;m<n.length;m++){if(r(n[m])){return n[m]}}}else{for(m=j-1;m>=0;m--){if(r(n[m])){return n[m]}}}return null}if(p.keyCode===9){k=b(l.getParam("tab_focus",l.getParam("tabfocus_elements",":prev,:next")));if(k.length==1){k[1]=k[0];k[0]=":prev"}if(p.shiftKey){if(k[0]==":prev"){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==":next"){n=q(1)}else{n=c.get(k[1])}}if(n){if(n.id&&(l=tinymce.get(n.id||n.name))){l.focus()}else{window.setTimeout(function(){if(!tinymce.isWebKit){window.focus()}n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}},getInfo:function(){return{longname:"Tabfocus",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("tabfocus",tinymce.plugins.TabFocusPlugin)})();

Version data entries

305 entries across 303 versions & 9 rubygems

Version Path
wagn-1.16.15 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.14 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.13 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.12 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.11 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.10 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.9 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.8 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.7 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.6 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.5 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.4 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.3 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.2 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.16.0 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
tinymce-rails-3.5.11 vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.15.7 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.15.6 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.15.5 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js