在激活主题的函数中添加以下函数。php文件。
function changeMceDefaults($in) {
// customize the buttons
$in[\'theme_advanced_buttons1\'] = \'bold,italic,underline,bullist,numlist,hr,blockquote,link,unlink,justifyleft,justifycenter,justifyright,justifyfull,outdent,indent\';
$in[\'theme_advanced_buttons2\'] = \'formatselect,pastetext,pasteword,charmap,undo,redo\';
// Keep the "kitchen sink" open
$in[ \'wordpress_adv_hidden\' ] = FALSE;
return $in;
}
add_filter( \'tiny_mce_before_init\', \'changeMceDefaults\' );