码迷,mamicode.com
首页 > 其他好文 > 详细

板邓:wp_editor编辑器功能增强版

时间:2016-05-18 14:06:59      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

 

在functions.php文件里添加一下代码即可:

//wp编辑器增强版
function add_editor_buttons($buttons) {
$buttons[] = ‘fontselect‘;
$buttons[] = ‘fontsizeselect‘;
$buttons[] = ‘backcolor‘;
$buttons[] = ‘underline‘;
$buttons[] = ‘hr‘;
$buttons[] = ‘sub‘;
$buttons[] = ‘sup‘;
$buttons[] = ‘cut‘;
$buttons[] = ‘copy‘;
$buttons[] = ‘paste‘;
$buttons[] = ‘cleanup‘;
$buttons[] = ‘wp_page‘;
$buttons[] = ‘newdocument‘;
return $buttons;
}
add_filter("mce_buttons_3", "add_editor_buttons");	 

板邓:wp_editor编辑器功能增强版

标签:

原文地址:http://www.cnblogs.com/xbdeng/p/5504778.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!