给WordPress编辑器添加首行缩进标签
2009年07月18日用样式定义text-indent可以给文章段落加上首行缩进。
找到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首行缩进的标签了。
也可以直接给要缩进的段落加上style:
text-indent:2em; |