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
goldencobra-2.3.4 app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin.js
goldencobra-2.3.3 app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin.js
wagn-1.21.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.3.2 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.3.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.3.0 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.2.2 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.2.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.2 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
decko-0.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.21.0 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.20.4 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.20.3 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.20.2 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.20.1 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.20.0 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
ish_lib-0.0.8 vendor/assets/javascripts/.trash/tinymce/plugins/tabfocus/editor_plugin.js
ish_lib-0.0.8 vendor/assets/themeforest/alpona/html/js/tiny_mce/plugins/tabfocus/editor_plugin.js
wagn-1.19.6 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js
wagn-1.19.5 rails/assets/tinymce/plugins/tabfocus/editor_plugin.js