Index: wp-admin/edit-page-form.php =================================================================== --- wp-admin/edit-page-form.php (revision 3658) +++ wp-admin/edit-page-form.php (working copy) @@ -130,56 +130,9 @@
- -Index: wp-admin/edit-form-comment.php =================================================================== --- wp-admin/edit-form-comment.php (revision 3658) +++ wp-admin/edit-form-comment.php (working copy) @@ -37,56 +37,9 @@
- -Index: wp-admin/edit-form-advanced.php =================================================================== --- wp-admin/edit-form-advanced.php (revision 3658) +++ wp-admin/edit-form-advanced.php (working copy) @@ -143,56 +143,8 @@ - - - Index: wp-admin/admin-header.php =================================================================== --- wp-admin/admin-header.php (revision 3658) +++ wp-admin/admin-header.php (working copy) @@ -48,9 +48,7 @@ - - - + Index: wp-includes/functions-post.php =================================================================== --- wp-includes/functions-post.php (revision 3658) +++ wp-includes/functions-post.php (working copy) @@ -1002,4 +1002,81 @@ return array('file' => $new_file, 'url' => $url, 'error' => false); } +/** + * Places two script links in : one to get tinyMCE (big), one to configure and start it (small) + */ +function tinymce_include() { + $src1 = get_settings('siteurl') . '/wp-includes/js/tinymce/tiny_mce_gzip.php'; + $src2 = get_settings('siteurl') . '/wp-includes/js/tinymce/tiny_mce_config.php'; + + echo "\n"; + echo "\n"; +} + +/** + * Places a textarea according to the current user's preferences, filled with $content. + * Also places a script block that enables tabbing between Title and Content. + * + * @param string Editor contents + * @param string (optional) Previous form field's ID (for tabbing support) + */ +function the_editor($content, $id = 'content', $prev_id = 'title') { + $rows = get_settings('default_post_edit_rows'); + if (($rows < 3) || ($rows > 100)) + $rows = 12; + + $rows = "rows='$rows'"; + + the_quicktags(); + + if ( user_can_richedit() ) + add_filter('the_editor_content', 'wp_richedit_pre'); + + $the_editor = apply_filters('the_editor', "\n"); + $the_editor_content = apply_filters('the_editor_content', $content); + + printf($the_editor, $the_editor_content); + + ?> + +