WordPress.org

Make WordPress Core

Ticket #17261: 17261.diff

File 17261.diff, 3.4 KB (added by solarissmoke, 10 years ago)

Remove tabfocus TinyMCE plugin

  • 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

     
    140140                array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver),
    141141                array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver),
    142142
    143                 array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver),
    144 
    145143                array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver),
    146144                array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver),
    147145
  • wp-admin/includes/post.php

     
    14101410                $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'fullscreen', 'wordpress', 'wplink', 'wpdialogs') );
    14111411                $ext_plugins = '';
    14121412        } 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' );
    14141414
    14151415                /*
    14161416                The following filter takes an associative array of external plugins for TinyMCE in the form 'plugin_name' => 'url'.
     
    15531553                'gecko_spellcheck' => true,
    15541554                'entities' => '38,amp,60,lt,62,gt',
    15551555                'accessibility_focus' => true,
    1556                 'tabfocus_elements' => 'major-publishing-actions',
    15571556                'media_strict' => false,
    15581557                'paste_remove_styles' => true,
    15591558                'paste_remove_spans' => true,