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

關於作者

ajneok

搜尋這個作者的文章ajneok

作者網頁連結http://blog.ajneok.org

10

08 2008

7 Comments Add Yours ↓

The upper is the most recent comment

  1. 1

    好文~
    我髮上加入了版主回附的按鍵

    1. edButtons[edButtons.length] =
    2. new edButton('ed_owner_response'
    3. ,'owner_re'
    4. ,'<blockquote><b>版主回應:</b>'
    5. ,'</blockquote>'
    6. ,'owner_re'
    7. );
  2. ajneok #
    2

    @BB先生:
    恭喜XD~ 謝謝~
    希望常來 :P

  3. 3

    sorry, 忘了不能直接PO,我轉一下

    edButtons[edButtons.length] =
    new edButton(‘ed_owner_response’
    ,’owner_re’
    ,’<blockquote><b><font color="blue">版主回應:</font></b>’
    ,’</blockquote>’
    ,’owner_re’
    );

  4. 4

    沒關係我上面有幫你轉好了 :)

  5. Alexwebmaster #
    5

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  6. 6

    我想請問一下
    我部落格裡用的版主回應也是跟樓上的BB先生一樣

    我使用blockquote時都會變成斜體字
    不過我不想要斜體字..請問一下我該怎麼修改?
    是改css嗎?

  7. 7

    @satimsa:
    抱歉回太慢^^』~最近太忙了ˊˋ~
    恩恩~是改CSS~你要改這邊的↓
    li.comment blockquote



Your Comment