->

像這樣子增加html tag除了使用quick tag 外掛之外,可以用手動的方法…
在 /wp-include/js/quicktags.js 中
找到
- edButtons[edButtons.length] =
- new edButton('ed_strong'
- ,'b'
- ,'<strong>'
- ,'</strong>'
- ,'b'
- );
在他的下面或上面增加自己想要增加的html quick tag即可…
他的定義方式檔案裡面也有寫到
- function edButton(id, display, tagStart, tagEnd, access, open) {
- this.id = id; // used to name the toolbar button
- this.display = display; // label on button
- this.tagStart = tagStart; // open tag
- this.tagEnd = tagEnd; // close tag
- this.access = access; // access key
- this.open = open; // set to -1 if tag does not need to be closed
- }
我今天其實只是想要增加 coolcode 的 tag… 所以我這麼做…
- edButtons[edButtons.length] =
- new edButton('ed_coolcode'
- ,'coolcode'
- ,'<coolcode>'
- ,'</coolcode>'
- ,'coolcode'
- );
加入書簽:













好文~
我髮上加入了版主回附的按鍵
@BB先生:
恭喜XD~ 謝謝~
希望常來
sorry, 忘了不能直接PO,我轉一下
edButtons[edButtons.length] =
new edButton(’ed_owner_response’
,’owner_re’
,’<blockquote><b><font color="blue">版主回應:</font></b>’
,’</blockquote>’
,’owner_re’
);
沒關係我上面有幫你轉好了