Sha256: a590488486f8365e1c7daf970cd577ffb1d35deafea9e29d3fec591f6ef58c92

Contents?: true

Size: 1.4 KB

Versions: 90

Compression:

Stored size: 1.4 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(i){o=c.getParent(l.id,"form");n=o.elements;if(o){d(n,function(s,r){if(s.id==l.id){j=r;return false}});if(i>0){for(m=j+1;m<n.length;m++){if(n[m].type!="hidden"){return n[m]}}}else{for(m=j-1;m>=0;m--){if(n[m].type!="hidden"){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(l=tinymce.EditorManager.get(n.id||n.name)){l.focus()}else{window.setTimeout(function(){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)}f.onInit.add(function(){d(c.select("a:first,a:last",f.getContainer()),function(i){a.add(i,"focus",function(){f.focus()})})})},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

90 entries across 68 versions & 10 rubygems

Version Path
kete-tiny_mce-0.1.0 lib/tiny_mce/assets/tiny_mce/plugins/tabfocus/editor_plugin.js
krasivotokak-tiny_mce-0.0.1 public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
krasivotokak-tiny_mce-0.0.2 public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
krasivotokak-tiny_mce-0.0.4 public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
krasivotokak-tiny_mce-0.1.0 lib/tiny_mce/assets/tiny_mce/plugins/tabfocus/editor_plugin.js
forgeos_core-1.9.4 app/assets/javascripts/forgeos/tiny_mce/plugins/tabfocus/editor_plugin.js
forgeos_core-1.9.3 app/assets/javascripts/forgeos/tiny_mce/plugins/tabfocus/editor_plugin.js
forgeos_core-1.9.2 app/assets/javascripts/forgeos/tiny_mce/plugins/tabfocus/editor_plugin.js
forgeos_core-1.9.1 app/assets/javascripts/forgeos/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-oauth-0.2.4 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-oauth-0.2.3 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-oauth-0.2.2 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-contents-0.2.22 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-contents-0.2.21 public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-contents-0.2.21 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-oauth-0.2.1 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-oauth-0.2.0 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
ds-kitsune-0.2.5 generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-contents-0.2.20 public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js
muck-contents-0.2.20 test/rails_root/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js