Wordpress - Can you add the visual editor to the description field for custom taxonomies?
Just wrote the function. It'll display the tinymce editor in every custom taxonomy description right now. Surely you can edit to show it for only some specific taxonomy.
/**
* Display advanced TinyMCE editor in taxonomy page
*/
function wpse_7156_enqueue_category() {
global $pagenow, $current_screen;
if( $pagenow == 'edit-tags.php' ) {
require_once(ABSPATH . 'wp-admin/includes/post.php');
require_once(ABSPATH . 'wp-admin/includes/template.php');
wp_tiny_mce( false, array( 'editor_selector' => 'description', 'elements' => 'description', 'mode' => 'exact' ));
}
}
add_action( 'init', 'wpse_7156_enqueue_category' );
You can provide the first argument in wp_tiny_mce
as true
if you want a stripped version of tinyMCE
Have you tried The Rich Text Tags Plugin?
- It does exactly what you need.
- Works with custom taxonomies.
- Works well with images.
- Includes the new WP internal linking.
- It is regularly updated.
Screenshot: