Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 891
Erfan Safarpoor Avatar asked Oct 06 '22 21:10

Erfan Safarpoor


1 Answers

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
});
like image 113
Robin Maben Avatar answered Oct 10 '22 03:10

Robin Maben