蓝狮官网增强wordpress编辑器的功能

wordpress的编辑器功能虽然一般来说够用了,对于一蓝狮官网个前端来说,更是无所谓,但是,能更丰富,当然是更好了,哈哈.

上代码,PS:此代码要放在function.php中

add_filter(‘mce_buttons_3′,’my_buttons’);
function my_buttons($buttons){
$mces=array(
‘cut’,
‘copy’,
‘paste’,
‘hr’,
‘fontselect’,
‘fontsizeselect’,
‘styleselect’,
‘sub’,
‘sup’,
‘backcolor’,
‘visualaid’,
‘anchor’,
‘newdocument’,
);
foreach($mces as $mce){ 蓝狮官网
$buttons[]=$mce;
}
return $buttons;
}
标签:主题开发, 编辑器

0 Comments
Leave a Reply