在撰寫文章中有個『code』的按鈕,
但是按了之後沒有作用,
後來裝了coolcode外掛之後,
就可以使用code代碼的功能了,
於是我打算把撰寫文章中的『code』改成『coolcode』
打開wp-includes/js中的quicktags.js的檔案,
尋找
edButtons[edButtons.length] =
new edButton('ed_code'
,'code'
,''
,''
,'c'
);
取代為
edButtons[edButtons.length] =
new edButton('ed_coolcode'
,'coolcode'
,''
,'
'
,'c'
);
或是如果不想把本來工作列中的『code』取代,
(或許有它的用處,只是我沒有發現)
也可以直接在quicktags.js後面新增取代的那串代碼。