How to add validation.
BlackRabbitt opened this issue · comments
Sujit Shakya commented
I have integrated the editor to my description section of the form. Now I want to add the client side validation for presence: true. Can anyone help.
Sujit Shakya commented
Found the solution by adding the events as suggested by the documentation
$('#some-textarea').wysihtml5({
"events": {
"load": function() {
console.log("Loaded!");
},
"blur": function() {
console.log("Blured");
}
}
});