I'm working on creating a custom content type but I'm having a bit of a problem formatting the create and edit views. I want to disable the main editor and focus only on the title, excerpt, and custom fields. I have the following jQuery code that will add the WYSIWYG to my custom fields, and that works fine:
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready( function () {
if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
tinyMCE.execCommand("mceAddControl", true, "solution_problem");
tinyMCE.execCommand("mceAddControl", true, "solution_solution");
tinyMCE.execCommand("mceAddControl", true, "solution_people");
}
});
/* ]]> */
</script>
But then when I remove the editor from the 'supports' argument in *register_post_type*:
'supports' => array('title','thumbnail','excerpt'), 'taxonomies' => array('category', 'post_tag')
The default editor disappears but so do my custom WYSIWYGs. Anybody have any idea why this might be happening? Thanks!