Show media upload buttons when RTE is not enabled. Props tellyworth. fixes #5764

git-svn-id: http://svn.automattic.com/wordpress/trunk@6746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-07 04:21:22 +00:00
parent 21d3dd2a76
commit 2d7252544b
1 changed files with 9 additions and 0 deletions

View File

@ -957,6 +957,15 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
document.getElementById('editor-toolbar').style.display = 'block'; document.getElementById('editor-toolbar').style.display = 'block';
// ]]> // ]]>
</script> </script>
<?php else: // Rich editor is disabled in profile but we still need the media buttons ?>
<div id='editor-toolbar' style='display:block;'>
<div id="media-buttons">
<?php _e('Add media:'); ?>
<?php do_action( 'media_buttons'); ?>
</div>
</div>
<?php endif; // user_can_richedit() ?> <?php endif; // user_can_richedit() ?>