Changeset 5602 for trunk/wp-includes/general-template.php
- Timestamp:
- 05/31/2007 12:24:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r5563 r5602 908 908 edCanvas = document.getElementById('<?php echo $id; ?>'); 909 909 <?php if ( $prev_id && user_can_richedit() ) : ?> 910 // If tinyMCE is defined. 911 if ( typeof tinyMCE != 'undefined' ) { 910 912 // This code is meant to allow tabbing from Title to Post (TinyMCE). 911 if ( tinyMCE.isMSIE ) 912 document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e) 913 { 913 if ( tinyMCE.isMSIE ) { 914 document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e) { 914 915 e = e ? e : window.event; 915 916 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { … … 924 925 } 925 926 } 926 else 927 document.getElementById('<?php echo $prev_id; ?>').onkeypress = function (e) 928 { 927 } else { 928 document.getElementById('<?php echo $prev_id; ?>').onkeypress = function (e) { 929 929 e = e ? e : window.event; 930 930 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { … … 939 939 } 940 940 } 941 } 942 } 941 943 <?php endif; ?> 942 944 //-->
Note: See TracChangeset
for help on using the changeset viewer.