我不确定这是否符合您的具体要求,但我已经使用它在我的评论表单上获得了TinyMce编辑器的“浓缩”版本:
<?php
add_action( \'comment_form_after\', \'tinyMCE_comment_form\' );
function tinyMCE_comment_form() {
?>
<script type="text/javascript" src="<?php echo includes_url( \'js/tinymce/tiny_mce.js\' ); ?>"></script>;
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode: "specific_textareas",
language: "",
skin: "default",
theme_advanced_buttons1: \'bold, italic, underline, blockquote, strikethrough, bullist, numlist, undo, redo, link, unlink\',
theme_advanced_buttons2: \'\',
theme_advanced_buttons3: \'\',
theme_advanced_buttons4: \'\',
elements: \'comment\',
theme_advanced_toolbar_location : "top",
});
</script>
<?php
}
如果您需要我提供的示例中未包含的更多特定功能,请发布您的特定需求,我会尽力帮助您