title: How to add a WordPress custom post type field with Tiny MCE
body: <p>I am creating a custom post type called Article. The article needs a field called signature that uses the Tiny MCE.</p>
  
  <p>I was able to achieve this but there is an extra border that shows outside the Tiny MCE Editor.</p>
  
  <p><a href="http://webypedia.com/wp-content/uploads/2010/07/tiny-mce-custom-field.jpg" rel="nofollow noreferrer">http://webypedia.com/wp-content/uploads/2010/07/tiny-mce-custom-field.jpg</a></p>
  
  <p>My goal is to make the signature field editor similar to the post editor.</p>
  
  <p>Here is the current code I am using that produces that editor in the first image:</p>
  
  <pre><code>function admin_init(){
    add_meta_box("signature_meta", "Signature", "signature_meta", "article", "normal", "low");
  }
  
  function signature_meta() {
    global $post;
    $custom = get_post_custom($post-&gt;ID);  
    $signature = $custom["signature"][0];
    ?&gt;    
    &lt;div class="postbox"&gt;
    &lt;textarea name="signature" class="signature" id='signature'&gt;&lt;?php echo $signature; ?&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;script type="text/javascript"&gt;
      jQuery(document).ready(function() {
      jQuery("#signature").addClass("mceEditor");
      if ( typeof( tinyMCE ) == "object" &amp;&amp; typeof( tinyMCE.execCommand ) == "function" ) {
      tinyMCE.execCommand("mceAddControl", false, "signature");
      }
      });
    &lt;/script&gt;
    &lt;?php
  }
  </code></pre>