5

如何将自定义按钮添加到JqueryTe编辑器插件:

add button: <center>string</center>
add button: add image url <img src="string" />

代码.google.com/

jqueryte.com

4

1 回答 1

5

插件初始化后,你可以做..

var newButton = $('<a class="myButton" unselectable="on" />');
$('#someContainer .jqte_Panel').append(newButton);

newButton.on('click', function(){
 //new functionality
});
于 2012-08-24T11:29:30.600 回答