How to use WordPress Text Editor in a custom plugin

How can we use default wordpress text editor for my wordpress plugin.Any suggections please?

Related posts

Leave a Reply

4 comments

  1. very easy try this code
    it’s working

     wp_editor( $distribution, 'distribution', array( 'theme_advanced_buttons1' => 'bold, italic, ul, pH, pH_min', "media_buttons" => true, "textarea_rows" => 8, "tabindex" => 4 ) );