给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首行缩进的标签了。

分享快乐:
  • 豆瓣九点
  • Digg
  • Google Bookmarks
  • QQ书签
  • Facebook
  • Add to favorites
  • email
  • Print

3 Responses to “给WordPress编辑器添加首行缩进标签”


Leave a Reply