Make WordPress Core


Ignore:
Timestamp:
03/30/2006 07:50:33 AM (19 years ago)
Author:
ryan
Message:

tinyMCE 2.0.5 coming at you live. fixes #2598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r3660 r3664  
    131131<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
    132132    <legend><?php _e('Page Content') ?></legend>
    133 <?php
    134  $rows = get_settings('default_post_edit_rows');
    135  if (($rows < 3) || ($rows > 100)) {
    136      $rows = 10;
    137  }
    138 ?>
    139 <?php the_quicktags(); ?>
    140 
    141 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo user_can_richedit() ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div>
     133    <?php the_editor($post->post_content); ?>
    142134</fieldset>
    143 
    144 <script type="text/javascript">
    145 <!--
    146 edCanvas = document.getElementById('content');
    147 <?php if ( user_can_richedit() ) : ?>
    148 // This code is meant to allow tabbing from Title to Post (TinyMCE).
    149 if ( tinyMCE.isMSIE )
    150     document.getElementById('title').onkeydown = function (e)
    151         {
    152             e = e ? e : window.event;
    153             if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
    154                 var i = tinyMCE.selectedInstance;
    155                 if(typeof i ==  'undefined')
    156                     return true;
    157                                 tinyMCE.execCommand("mceStartTyping");
    158                 this.blur();
    159                 i.contentWindow.focus();
    160                 e.returnValue = false;
    161                 return false;
    162             }
    163         }
    164 else
    165     document.getElementById('title').onkeypress = function (e)
    166         {
    167             e = e ? e : window.event;
    168             if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
    169                 var i = tinyMCE.selectedInstance;
    170                 if(typeof i ==  'undefined')
    171                     return true;
    172                                 tinyMCE.execCommand("mceStartTyping");
    173                 this.blur();
    174                 i.contentWindow.focus();
    175                 e.returnValue = false;
    176                 return false;
    177             }
    178         }
    179 <?php endif; ?>
    180 //-->
    181 </script>
    182135
    183136<p class="submit">
Note: See TracChangeset for help on using the changeset viewer.