WordPress.org

Make WordPress Core

Changeset 2749


Ignore:
Timestamp:
08/04/05 09:26:32 (12 years ago)
Author:
matt
Message:

More places where WYSIWYG should be triggered

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r2714 r2749  
    3939<fieldset style="clear: both;"> 
    4040        <legend><?php _e('Comment') ?></legend> 
     41<?php if ( !get_option('rich_editing') ) : ?> 
    4142<?php the_quicktags(); ?> 
     43<script type="text/javascript"> 
     44<!-- 
     45edCanvas = document.getElementById('content'); 
     46//--> 
     47</script> 
     48<?php endif; ?> 
    4249<?php 
    4350 $rows = get_settings('default_post_edit_rows'); 
     
    4653 } 
    4754?> 
    48 <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo $comment->comment_content ?></textarea></div> 
     55<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo $comment->comment_content ?></textarea></div> 
    4956</fieldset> 
    5057 
    51 <script type="text/javascript"> 
    52 <!-- 
    53 edCanvas = document.getElementById('content'); 
    54 //--> 
    55 </script> 
    5658 
    5759<p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 
  • trunk/wp-admin/edit-page-form.php

    r2730 r2749  
    119119<fieldset id="postdiv"> 
    120120    <legend><?php _e('Page Content') ?></legend> 
     121<?php if ( !get_option('rich_editing') ) : ?> 
    121122<?php the_quicktags(); ?> 
     123<script type="text/javascript"> 
     124<!-- 
     125edCanvas = document.getElementById('content'); 
     126//--> 
     127</script> 
     128<?php endif; ?> 
    122129<?php 
    123130 $rows = get_settings('default_post_edit_rows'); 
     
    126133 } 
    127134?> 
    128 <div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div> 
     135<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div> 
    129136</fieldset> 
    130137 
    131138 
    132 <script type="text/javascript"> 
    133 <!-- 
    134 edCanvas = document.getElementById('content'); 
    135 //--> 
    136 </script> 
     139 
    137140 
    138141<p class="submit"> 
Note: See TracChangeset for help on using the changeset viewer.