@dalbeab已经回答了您的问题,但我想如果您愿意,我会指出一种向编辑器添加水平规则的方法。
在内部functions.php
, 您可以添加以下内容:
// add horizontal rule button
function enable_more_buttons($buttons) {
$buttons[] = \'hr\';
return $buttons;
}
add_filter(\'mce_buttons\', \'enable_more_buttons\');
然后你会有一个TinyMCE按钮,看起来像这样,可以让你添加
<hr />
只需单击一次:
