Plugin Directory

Changeset 205015


Ignore:
Timestamp:
02/14/2010 02:56:45 AM (16 years ago)
Author:
jbeeler
Message:
 
Location:
tinymce-tabfocus-patch
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • tinymce-tabfocus-patch/trunk/readme.txt

    r204439 r205015  
    44Requires at least: 2.8
    55Tested up to: 2.9.1
    6 Stable tag: 1.0
     6Stable tag: 1.1
    77
    88Disables TinyMCE plugin Tabfocus thereby allowing tab characters to be typed into posts.
     
    4545== Changelog ==
    4646
     47**Changes in version 1.1**
     48
     49* Corrected bug which prevented other TinyMCE plugins from loading
     50
    4751**Changes in version 1.0**
    4852
  • tinymce-tabfocus-patch/trunk/tinymcetabfocus.php

    r204436 r205015  
    44    Plugin URI: http://www.optictheory.com/tinymce-tabfocus-patch/
    55    Description: Prevents the Tabfocus TinyMCE plugin from loading. This will allow for the typing of tab characters (for example, in code) into TinyMCE.   
    6     Version: 1.0
     6    Version: 1.1
    77    Author: John Beeler
    88    Author URI: http://www.optictheory.com
     
    3939 */
    4040function kill_tinymce_tabfocus_plugin($initArray) {
    41     foreach($initArray['plugins'] as $key => $value) {
    42         if ($value == "tabfocus")
    43             // Probably an easier way to do this, but this works.
    44             $initArray['plugins'][$key]='';
    45     }
    46    
    47     // Return the array, stripped of empty key/value pairs
    48     $initArray['plugins']=array_filter($initArray['plugins']);
     41    $initArray['plugins']=preg_replace("|[,]+tabfocus|i","",$initArray['plugins']);
    4942    return $initArray;
    5043}
Note: See TracChangeset for help on using the changeset viewer.