跳至正文

给WordPress编辑器添加首行缩进标签

找到wp-includes/js/quicktags.js

edButtons[edButtons.length] =
new edButton(‘ed_more’
,’more’
,'<!–more–>’
,”
,’t’
,-1
);

在下方添加:

edButtons[edButtons.length] =
new edButton(‘ed_para2em’
,’para2em’
,'<p style=”text-indent:2em”>’
,'</p>’
,’pa’
);

刷新后就可以看到para2em首行缩进的标签了。

标签:

《给WordPress编辑器添加首行缩进标签》有4个想法

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据