How to create WP Editor using wp_editor function

If you create a custom form or other thing that needs an editor that helps your user to add HTML and rich text using UI Editor then wp_editor is best for you!

Use this code inside the PHP code:

<?php .... ?>

$content = "";
$custom_editor_id = "editorid";
$custom_editor_name = "editorname";
$args = array(
   'media_buttons' => true, 
   'textarea_name' => $custom_editor_name,
   'textarea_rows' => get_option('default_post_edit_rows', 10),
   'quicktags' => true,
);
wp_editor( $content, $custom_editor_id, $args );

wp_editor