刚成功升级wp至2.6版本 功能部分正在体验中
发现WP2.6 tinymce可视化编辑器少了“插入图片”和“文章分页”依旧被隐藏了
大家可以修改wp安装目录下的\wp-includes\js\tinymce/tiny_mce_config.php把它恢复
查找下面代码(在121行)
<code>$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link', 'unlink', 'wp_more','|', 'spellchecker', 'fullscreen', 'wp_adv' ));
$mce_buttons = implode($mce_buttons, ',');</code>
改为
<code>$mce_buttons = apply_filters('mce_buttons', array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'link', 'unlink', 'image', 'wp_more', 'wp_page','|', 'spellchecker', 'fullscreen', 'wp_adv' ));
$mce_buttons = implode($mce_buttons, ',');</code>
这样可视化编辑器中就出现了image和nextpage的输入按钮
html编辑器下的“文章分页”也依旧被隐藏了
编辑wp-includes\js/quicktags.js把它恢复
查找下面代码(在143行)
<code>/*
edButtons[edButtons.length] =
new edButton(’ed_next’
,’page’
,’< !–nextpage–>’
,”
,’p’
,-1
);
*/</code>
将注释代码/*和*/删除掉就ok了
最后请在文章页模板(通常为single.php)的loop中添加下列代码
<code>< ?php wp_link_pages(); ?></code>
来实现文章内分页链接的输出
[ 本帖最后由 Miko 于 2008-7-16 02:12 编辑 ] |