[WordPress] 增加發文快速tag

null
像這樣子增加html tag除了使用quick tag 外掛之外,可以用手動的方法…

在 /wp-include/js/quicktags.js 中
找到

  1. edButtons[edButtons.length] =
  2. new edButton('ed_strong'
  3. ,'b'
  4. ,'<strong>'
  5. ,'</strong>'
  6. ,'b'
  7. );

在他的下面或上面增加自己想要增加的html quick tag即可…
他的定義方式檔案裡面也有寫到

  1. function edButton(id, display, tagStart, tagEnd, access, open) {
  2.     this.id = id;                // used to name the toolbar button
  3.     this.display = display;        // label on button
  4.     this.tagStart = tagStart;     // open tag
  5.     this.tagEnd = tagEnd;        // close tag
  6.     this.access = access;        // access key
  7.     this.open = open;            // set to -1 if tag does not need to be closed
  8. }

我今天其實只是想要增加 coolcode 的 tag… 所以我這麼做…

  1. edButtons[edButtons.length] =
  2. new edButton('ed_coolcode'
  3. ,'coolcode'
  4. ,'<coolcode>'
  5. ,'</coolcode>'
  6. ,'coolcode'
  7. );

7個對 “[WordPress] 增加發文快速tag” 的回應


留下回覆

Calendar

八月 2008
« 七月   九月 »
 123
45678910
11121314151617
18192021222324
25262728293031

Google Friend Connect

Blog ADS

透過email 訂閱

發送者為 FeedBurner

Counter