WordPress2.9 首行缩进功能的实现

2010年1月15日 由 peter 留言 »

WordPress更新2.9之后,发现自动缩进的没了,于是网上Google了一下,记录下来,下次就可以直接用了。

在wp-includes/js/quicktags.js文件中找到More标签这行

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’);

留下评论