title: Add WordPress wysiwyg/tiny mce editor on an image attachment details
body: <p>Right now I have this snippet of code, and can add an input on the attachment details of an image. But I don't know how to add a wysiwyg/tinymce editor like the one in the widgets: <a href="https://gyazo.com/d40dad527f9d7b52f112b6884aac009c" rel="nofollow noreferrer">https://gyazo.com/d40dad527f9d7b52f112b6884aac009c</a>. Am I going to have to add some javascript in the admin.js to turn this textarea into a tinymce editor?</p>
  
  <pre><code>add_filter( 'attachment_fields_to_edit', [self::class, 'test'], 10, 2 );
  
  function test($fields, $post) {
          $meta = get_post_meta( $post-&gt;ID, 'buy_now', true );
              $fields['test'] = array(
                      'label' =&gt;  __( 'Test', 'text-domain' ),
                      'input' =&gt; 'textarea',
                      'value' =&gt; $meta,
                      'show_in_edit' =&gt; true,
              );
  
  
  
              return $fields; 
      }
  </code></pre>