WordPress可以安裝不同的plugin,其中一個很多人常用的是有關Editor Tool Bar,例如FCKeditor就是其中一個。
有一些plugin 只需上載後,然後啟用就可以用了。有一些還在將function 加入theme中,才能應用。
而每一個editor都可有美中不足的地方。
在一位西班牙朋友的blog中,我得悉原來editor除了下載plugin之外,還可以在/wp-includes/js/tinymce/tiny_mce_gzip.php 自我修改的。
在line 127
$mce_buttons = apply_filters(’mce_buttons’, array(’bold’, ‘italic’, ’strikethrough’, ’separator’, ‘bullist’, ‘numlist’, ‘outdent’, ‘indent’, ’separator’, ‘justifyleft’, ‘justifycenter’, ‘justifyright’ ,’separator’, ‘link’, ‘unlink’, ‘image’, ‘wordpress’, ’separator’, ‘undo’, ‘redo’, ‘code’, ‘wphelp’));
然後加上blod了的部分
$mce_buttons = apply_filters(’mce_buttons’, array(’bold’, ‘italic’, ’strikethrough’, ’separator’, ‘formatselect’, ‘fontsizeselect’, ‘forecolor’, ’separator’, ‘bullist’, ‘numlist’, ‘outdent’, ‘indent’, ’separator’, ‘justifyleft’, ‘justifycenter’, ‘justifyright’ ,’separator’, ‘link’, ‘unlink’, ‘image’, ‘wordpress’, ’separator’, ‘undo’, ‘redo’, ‘code’, ‘wphelp’));
那麼,Editor tool bar就會多了3個 button 了!
