有一个简单的方法。开放函数。php并添加此代码。它适用于许多html实体
// got this form http://www.sycha.com/wordpress-add-hr-button-tinymce-visual-editor
function enable_more_buttons($buttons) {
$buttons[] = \'hr\';
/*
Repeat with any other buttons you want to add, e.g.
$buttons[] = \'fontselect\';
$buttons[] = \'sup\';
*/
return $buttons;
}
add_filter("mce_buttons", "enable_more_buttons");
//add_filter("mce_buttons_2", "enable_more_buttons"); // add to second row
//add_filter("mce_buttons_3", "enable_more_buttons"); // add to third row