如何向 JqueryTe 编辑器插件添加自定义按钮:
add button: <center>string</center>
add button: add image url <img src="string" />
答案 0 :(得分:4)
插件初始化后,您可以执行..
var newButton = $('<a class="myButton" unselectable="on" />');
$('#someContainer .jqte_Panel').append(newButton);
newButton.on('click', function(){
//new functionality
});