Changeset 205015
- Timestamp:
- 02/14/2010 02:56:45 AM (16 years ago)
- Location:
- tinymce-tabfocus-patch
- Files:
-
- 3 added
- 2 edited
-
tags/1.1 (added)
-
tags/1.1/readme.txt (added)
-
tags/1.1/tinymcetabfocus.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tinymcetabfocus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tinymce-tabfocus-patch/trunk/readme.txt
r204439 r205015 4 4 Requires at least: 2.8 5 5 Tested up to: 2.9.1 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 8 8 Disables TinyMCE plugin Tabfocus thereby allowing tab characters to be typed into posts. … … 45 45 == Changelog == 46 46 47 **Changes in version 1.1** 48 49 * Corrected bug which prevented other TinyMCE plugins from loading 50 47 51 **Changes in version 1.0** 48 52 -
tinymce-tabfocus-patch/trunk/tinymcetabfocus.php
r204436 r205015 4 4 Plugin URI: http://www.optictheory.com/tinymce-tabfocus-patch/ 5 5 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. 06 Version: 1.1 7 7 Author: John Beeler 8 8 Author URI: http://www.optictheory.com … … 39 39 */ 40 40 function 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']); 49 42 return $initArray; 50 43 }
Note: See TracChangeset
for help on using the changeset viewer.