kala-tamin How to add a WordPress custom post type field with Tiny MCE

How to add a WordPress custom post type field with Tiny MCE

I am creating a custom post type called Article. The article needs a field called signature that uses the Tiny MCE.

I was able to achieve this but there is an extra border that shows outside the Tiny MCE Editor.


My goal is to make the signature field editor similar to the post editor.

Here is the current code I am using that produces that editor in the first image:

function admin_init(){   add_meta_box("signature_meta", "Signature", "signature_meta", "article", "normal", "low"); }  function signature_meta() {   global $post;   $custom = get_post_custom($post->ID);     $signature = $custom["signature"][0];   ?>       <div class="postbox">   <textarea name="signature" class="signature" id='signature'><?php echo $signature; ?></textarea>   </div>   <script type="text/javascript">     jQuery(document).ready(function() {     jQuery("#signature").addClass("mceEditor");     if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {     tinyMCE.execCommand("mceAddControl", false, "signature");     }     });   </script>   <?php } 

Wordpress: is child of category function


Catch all Wordpress exceptions?
You could hook onto the action edit_post_form (or edit_page_form for page types), which runs just after all meta boxes with 'normal' context are printed, and then simply output your TinyMCE editor.. Best CMS to use on Windows Azure [closed] Otherwise stick to using the meta box API, although inject a little CSS in the admin head to re-style the metabox, hiding the title and brule (view source to see which selectors you have available to tarreceive ).. Funny Character Appearing in my WordPress Pages Content
when do i use wordpress [closed]

90 out of 100 based on 35 user ratings 550 reviews