Move JS below edit form, fixes #1555

git-svn-id: http://svn.automattic.com/wordpress/trunk@2804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-23 07:46:33 +00:00
parent e58da70252
commit d171aa7ec4
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;" />