使用wp_editor()
. 有许多配置选项;您必须阅读源代码才能获得所有这些内容。
示例:
$editor_settings = array (
\'textarea_rows\' => 15,
\'media_buttons\' => FALSE,
\'teeny\' => TRUE,
\'tinymce\' => TRUE,
\'dfw\' => FALSE,
);
$content = $get_option( \'your_option_name\' );
wp_editor( $content, \'your_editor_id\', $editor_settings );