Reputation: 5283
How do I add custom buttons to JqueryTe editor plugin:
add button: <center>string</center>
add button: add image url <img src="string" />
Upvotes: 5
Views: 1658
Reputation: 23064
After the plugin has initialized, you can do..
var newButton = $('<a class="myButton" unselectable="on" />');
$('#someContainer .jqte_Panel').append(newButton);
newButton.on('click', function(){
//new functionality
});
Upvotes: 5