diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-18 13:47:42 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-18 13:47:42 +0000 |
| commit | 56777d417dd3fefd42e44db4f60377709fccdf5a (patch) | |
| tree | 163d1422f805827f7ba408260ccd9d9aaa6c5ea7 /wp-inst/wp-admin/edit-form-comment.php | |
| parent | 2b56b90f06b0018f0dba866e2d799cda640d9597 (diff) | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@440 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit-form-comment.php')
| -rw-r--r-- | wp-inst/wp-admin/edit-form-comment.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/wp-inst/wp-admin/edit-form-comment.php b/wp-inst/wp-admin/edit-form-comment.php index 33a1dba..07ad4ca 100644 --- a/wp-inst/wp-admin/edit-form-comment.php +++ b/wp-inst/wp-admin/edit-form-comment.php @@ -4,6 +4,7 @@ $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID); $form_action = 'editedcomment'; $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='".$comment->comment_post_ID; ?> +<?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?> <form name="post" action="post.php" method="post" id="post"> <div class="wrap"> @@ -37,14 +38,8 @@ addLoadEvent(focusit); <fieldset style="clear: both;"> <legend><?php _e('Comment') ?></legend> -<?php if ( 'true' != get_user_option('rich_editing') ) : ?> -<?php the_quicktags(); ?> -<script type="text/javascript"> -<!-- -edCanvas = document.getElementById('content'); -//--> -</script> -<?php endif; ?> +<?php if ( !$richedit ) the_quicktags(); ?> + <?php $rows = get_settings('default_post_edit_rows'); if (($rows < 3) || ($rows > 100)) { @@ -54,6 +49,13 @@ edCanvas = document.getElementById('content'); <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> </fieldset> +<?php if ( !$richedit ) : ?> +<script type="text/javascript"> +<!-- +edCanvas = document.getElementById('content'); +//--> +</script> +<?php endif; ?> <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> |
