javascript - How to use "change event" in bootstrap-wysiwyg? -
i using bootstrap-wysiwyg.
i need event occur after text modified , input box blurred.
i saw below code, isn't event want
// bind event event $('#wysiwyg').wysiwyg('document').keypress(function(e) { // cancel keypress e.preventdefault(); // alert alert('keypress detected!'); });
i want event occur after text modified , input box blurred.
event want similar ".change()" in jquery.
i hope me.. thank you..
i know question bit old, here's how can in case still need solve issue in future. assuming you're using latest version of bootstrap-wysiwyg can you're wanting using following code:
$('#wysiwyg').wysiwyg().on('change', function() { // code goes here });
you can download latest version here.
Comments
Post a Comment