Erfan Safarpoor
Erfan Safarpoor

Reputation: 5283

How to add new buttons to JqueryTe (texteditor plugin)

How do I add custom buttons to JqueryTe editor plugin:

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

code.google.com/

jqueryte.com

Upvotes: 5

Views: 1658

Answers (1)

Robin Maben
Robin Maben

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

Related Questions