Changeset 3664 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 03/30/2006 07:50:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r3660 r3664 144 144 <legend><?php _e('Post') ?></legend> 145 145 146 <?php 147 $rows = get_settings('default_post_edit_rows'); 148 if (($rows < 3) || ($rows > 100)) { 149 $rows = 12; 150 } 151 ?> 152 <?php the_quicktags(); ?> 153 154 <div><textarea <?php if ( user_can_richedit() ) echo 'title="true" '; ?>rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo user_can_richedit() ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div> 155 </fieldset> 156 157 <script type="text/javascript"> 158 <!-- 159 edCanvas = document.getElementById('content'); 160 <?php if ( user_can_richedit() ) : ?> 161 // This code is meant to allow tabbing from Title to Post (TinyMCE). 162 if ( tinyMCE.isMSIE ) 163 document.getElementById('title').onkeydown = function (e) 164 { 165 e = e ? e : window.event; 166 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 167 var i = tinyMCE.selectedInstance; 168 if(typeof i == 'undefined') 169 return true; 170 tinyMCE.execCommand("mceStartTyping"); 171 this.blur(); 172 i.contentWindow.focus(); 173 e.returnValue = false; 174 return false; 175 } 176 } 177 else 178 document.getElementById('title').onkeypress = function (e) 179 { 180 e = e ? e : window.event; 181 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 182 var i = tinyMCE.selectedInstance; 183 if(typeof i == 'undefined') 184 return true; 185 tinyMCE.execCommand("mceStartTyping"); 186 this.blur(); 187 i.contentWindow.focus(); 188 e.returnValue = false; 189 return false; 190 } 191 } 192 <?php endif; ?> 193 //--> 194 </script> 146 <?php the_editor($post->post_content); ?> 195 147 196 148 <?php echo $form_pingback ?>
Note: See TracChangeset
for help on using the changeset viewer.