WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2005 08:37:46 AM (16 years ago)
Author:
matt
Message:

Adding WYSIWYG. Todo: remove all uneccesary stuff.

File:
1 edited

Legend:

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

    r2730 r2748  
    137137
    138138<fieldset id="postdiv">
    139        <legend><?php _e('Post') ?></legend>
     139<legend><?php _e('Post') ?></legend>
     140<?php if ( !get_option('rich_editing') ) : ?>
    140141<?php the_quicktags(); ?>
    141 <?php
    142  $rows = get_settings('default_post_edit_rows');
    143  if (($rows < 3) || ($rows > 100)) {
    144      $rows = 10;
    145  }
    146 ?>
    147 <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
    148 </fieldset>
    149142<script type="text/javascript">
    150143<!--
     
    152145//-->
    153146</script>
     147<?php endif; ?>
     148<?php
     149 $rows = get_settings('default_post_edit_rows');
     150 if (($rows < 3) || ($rows > 100)) {
     151     $rows = 12;
     152 }
     153?>
     154<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
     155</fieldset>
    154156
    155157<?php echo $form_pingback ?>
Note: See TracChangeset for help on using the changeset viewer.