菲彩国际

 

WordPress后臺編輯器快速標簽

菲彩国际WordPress后臺編輯器里已經內置了一些標簽

edButtons[10] = new qt.TagButton('strong','b','<strong>','</strong>','b');
edButtons[20] = new qt.TagButton('em','i','<em>','</em>','i'),
edButtons[30] = new qt.LinkButton(), // special case
edButtons[40] = new qt.TagButton('block','b-quote','\n\n<blockquote>','</blockquote>\n\n','q'),
edButtons[50] = new qt.TagButton('del','del','<del datetime="' + _datetime + '">','</del>','d'),
edButtons[60] = new qt.TagButton('ins','ins','<ins datetime="' + _datetime + '">','</ins>','s'),
edButtons[70] = new qt.ImgButton(), // special case
edButtons[80] = new qt.TagButton('ul','ul','<ul>\n','</ul>\n\n','u'),
edButtons[90] = new qt.TagButton('ol','ol','<ol>\n','</ol>\n\n','o'),
edButtons[100] = new qt.TagButton('li','li','\t<li>','</li>\n','l'),
edButtons[110] = new qt.TagButton('code','code','<code>','</code>','c'),
edButtons[120] = new qt.TagButton('more','more','<span id="more-16803"></span>','','t'),
edButtons[140] = new qt.CloseButton();

如果想再優化一下,添加自己常用的標簽,可以打開 /wp-includes/js/quicktags.min.js
在文件的最后加上自己的tag:

QTags.addButton( 'js', 'js', '<coolcode lang="javascript">', '</coolcode>' );
QTags.addButton( 'h5', 'h5', '<h5>', '</h5>' );
QTags.addButton( 'h6', 'h6', '<h6>', '</h6>' );
QTags.addButton( 'br', 'br', '<br />' );

菲彩国际嗯,僅以此文章警示自己,先看文檔再做事。

崔凱博客
Powered by | Theme by ck web design | TOP 頂部
Copyright ? 崔凱 All rights reserved. 蜀ICP備12025891號.
菲彩国际_菲彩国际官网_Welcome 紫金阁棋牌-紫金阁棋牌官网 紫金阁棋牌-紫金阁棋牌官网 紫金阁棋牌-紫金阁棋牌官网 紫金阁棋牌-紫金阁棋牌官网