Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have loaded WP visual editor in comments using wp_editor function and I want to customize the height and buttons of the editor, also it would be much better to show Text mode/tab only and disable the Visual mode/tab.

Here my code:

<?PHP
    $settings = array(
                      false,        // wpautop
                      false,        // media_buttons
                      'comment',    // textarea_name
                      5,            // textarea_rows
                      'None',       // tabindex
                      'None',       // editor_css
                      'test',       // editor_class
                      true,         // teeny
                      false,
                      true,         // tinymce
                      true          // quicktags
                     )

?>
<?php wp_editor( 'Enter your comments here', get_the_ID(), $settings); ?> 

Thanks

share|improve this question
add comment

1 Answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.