More edit comment page fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-31 16:52:55 +00:00
parent 4a784a1291
commit acfc26ecd6
4 changed files with 22 additions and 12 deletions

View File

@ -888,7 +888,10 @@ abbr.required,
color: #333;
}
#timestampdiv input {
#timestampdiv input,
#emaildiv input,
#uridiv input,
.stuffbox #name {
border-color: #ddd;
}

View File

@ -87,7 +87,6 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
</div>
<div id="postdiv" class="postarea">
<h3><?php _e('Comment') ?></h3>
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
</div>

View File

@ -405,8 +405,12 @@ textarea.all-options, input.all-options {
padding: 0;
}
#emaildiv input, #uridiv input, .stuffbox #name {
#emaildiv input,
#uridiv input,
.stuffbox #name {
width: 94%;
border-style: solid;
border-width: 1px;
}
#wpbody-content .metabox-holder {

View File

@ -1478,9 +1478,12 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
if (($rows < 3) || ($rows > 100))
$rows = 12;
$rows = "rows='$rows'"; ?>
$richedit = user_can_richedit();
$rows = "rows='$rows'";
if ( $richedit || $media_buttons ) { ?>
<div id="editor-toolbar">
<?php if ( user_can_richedit() ) {
<?php if ( $richedit ) {
$wp_default_editor = wp_default_editor(); ?>
<div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
<?php if ( 'html' == $wp_default_editor ) {
@ -1491,15 +1494,16 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
add_filter('the_editor_content', 'wp_richedit_pre'); ?>
<a id="edButtonHTML" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a>
<a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
<?php }
}
<?php }
}
if ( $media_buttons ) { ?>
<div id="media-buttons" class="hide-if-no-js">
<?php do_action( 'media_buttons' ); ?>
</div>
<?php } ?>
if ( $media_buttons ) { ?>
<div id="media-buttons" class="hide-if-no-js">
<?php do_action( 'media_buttons' ); ?>
</div>
<?php } ?>
</div>
<?php } ?>
<div id="quicktags">
<?php wp_print_scripts( 'quicktags' ); ?>