jQuery Text Editor change event bug
Seems to be a bug for the jQuery Text Editor plugin, where the change event is fired multiple times for every keystroke
HTML
<script src="http://jqueryte.com/js/jquery-te-1.4.0.min.js"></script>
<link rel="stylesheet" href="http://jqueryte.com/css/jquery-te.css">
<div class="editor"></div>
<button id="getValue">Get value</button>
<button id="embed">Embed</button>
JavaScript
$(".editor").jqte({
change: function() { console.log("hello world"); }
})
.jqteVal("umm");
$("#getValue").on({
click : function() {
alert($(".editor").val());
}
});