Adding WYSIWYG. Todo: remove all uneccesary stuff.

git-svn-id: https://develop.svn.wordpress.org/trunk@2748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-08-04 08:37:46 +00:00
parent 68ee8caad4
commit c2e4367a4f
177 changed files with 8446 additions and 19 deletions
+11 -9
View File
@@ -136,21 +136,23 @@ endforeach;
</fieldset>
<fieldset id="postdiv">
<legend><?php _e('Post') ?></legend>
<legend><?php _e('Post') ?></legend>
<?php if ( !get_option('rich_editing') ) : ?>
<?php the_quicktags(); ?>
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
$rows = 10;
}
?>
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
</fieldset>
<script type="text/javascript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php endif; ?>
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
$rows = 12;
}
?>
<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 echo $form_pingback ?>
<?php echo $form_prevstatus ?>