Ticket #17261: 17261.diff
File 17261.diff, 3.4 KB (added by , 10 years ago) |
---|
-
wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js
1 (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(r){n=c.select(":input:enabled,*[tabindex]");function i(s){return s.type!="hidden"&&s.tabIndex!="-1"&&!(n[m].style.display=="none")&&!(n[m].style.visibility=="hidden")}d(n,function(t,s){if(t.id==l.id){j=s;return false}});if(r>0){for(m=j+1;m<n.length;m++){if(i(n[m])){return n[m]}}}else{for(m=j-1;m>=0;m--){if(i(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)})();2 No newline at end of file -
wp-admin/includes/manifest.php
140 140 array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver), 141 141 array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver), 142 142 143 array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver),144 145 143 array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver), 146 144 array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver), 147 145 -
wp-admin/includes/post.php
1410 1410 $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'fullscreen', 'wordpress', 'wplink', 'wpdialogs') ); 1411 1411 $ext_plugins = ''; 1412 1412 } else { 1413 $plugins = array( 'inlinepopups', 'spellchecker', ' tabfocus', 'paste', 'media', 'wordpress', 'wpfullscreen', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' );1413 $plugins = array( 'inlinepopups', 'spellchecker', 'paste', 'media', 'wordpress', 'wpfullscreen', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' ); 1414 1414 1415 1415 /* 1416 1416 The following filter takes an associative array of external plugins for TinyMCE in the form 'plugin_name' => 'url'. … … 1553 1553 'gecko_spellcheck' => true, 1554 1554 'entities' => '38,amp,60,lt,62,gt', 1555 1555 'accessibility_focus' => true, 1556 'tabfocus_elements' => 'major-publishing-actions',1557 1556 'media_strict' => false, 1558 1557 'paste_remove_styles' => true, 1559 1558 'paste_remove_spans' => true,