[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. );
Tags: ,

本文共有 4 條評論[Wordpress] 增加發文快速tag


留下評論:



>---------------------------------------------------------------------------------------------------------------------------<

Blog Look Score and Rank 台灣部落格列表 who's online PageRank Checker, Alexa Rank Checker, and Yahoo Inlink Checker 免費資源網路社群