Move JS below edit form, fixes #1555

git-svn-id: https://develop.svn.wordpress.org/trunk@2804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-08-23 07:46:33 +00:00
parent d40e12b750
commit 822f7704bc
2 changed files with 18 additions and 18 deletions

View File

@ -130,14 +130,7 @@ endforeach;
<fieldset id="postdiv">
<legend><?php _e('Post') ?></legend>
<?php if ( 'true' != get_user_option('rich_editing') ) : ?>
<?php the_quicktags(); ?>
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php endif; ?>
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
@ -147,6 +140,15 @@ edCanvas = document.getElementById('content');
<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
</fieldset>
<?php if ( 'true' != get_user_option('rich_editing') ) : ?>
<?php the_quicktags(); ?>
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php endif; ?>
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>

View File

@ -117,14 +117,6 @@ endforeach;
<fieldset id="postdiv">
<legend><?php _e('Page Content') ?></legend>
<?php if ( 'true' != get_user_option('rich_editing') ) : ?>
<?php the_quicktags(); ?>
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php endif; ?>
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
@ -134,8 +126,14 @@ edCanvas = document.getElementById('content');
<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div>
</fieldset>
<?php if ( 'true' != get_user_option('rich_editing') ) : ?>
<?php the_quicktags(); ?>
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php endif; ?>
<p class="submit">
<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Edit Page') :_e('Create New Page') ?> &raquo;" />