Title: custom wp_editor
Last modified: September 14, 2017

---

# custom wp_editor

 *  [leo-l](https://wordpress.org/support/users/leo-l/)
 * (@leo-l)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/custom-wp_editor/)
 * We currently use a custom wp editor for our comments and replies that makes use
   of the inbuilt tinymce formatting:
 *     ```
       add_filter( 'comment_form_field_comment', 'comment_editor' );
       function comment_editor( $args ) {
        	global $post;
         ob_start();
   
         wp_editor( '', 'comment', array(
           'textarea_rows' => 15,
           'teeny' => true,
           'media_buttons' => false,
       	'quicktags' => false,
       	'tinymce' => array(
       		'toolbar1' => 'bold, italic, underline',
       		'toolbar2'=>false,
       		'statusbar'=>false,
       		'content_css' => get_stylesheet_directory_uri() . '/editor.css'
       	  )
       	) );
   
         $editor = ob_get_contents();
       ```
   
 * Is there a way to apply this to the edit text area as currently it shows all 
   the html mark up without the simple styling?

The topic ‘custom wp_editor’ is closed to new replies.

 * ![](https://ps.w.org/simple-comment-editing/assets/icon-256x256.png?rev=2863851)
 * [Comment Edit Core - Simple Comment Editing](https://wordpress.org/plugins/simple-comment-editing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-comment-editing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-comment-editing/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-comment-editing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-comment-editing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-comment-editing/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [leo-l](https://wordpress.org/support/users/leo-l/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/custom-wp_editor/)
 * Status: not resolved