- Code: Select all
$('#comments_form .wymeditor').wymeditor({
updateSelector: "#comment_sub",
updateEvent: "click"
});
$("#comment_sub").click(function(){
alert($("#comments_form").serialize());
return false;
});
Is there an option I can add to .wymeditor() that would run a function after update?
I know there are ways to attach custom functions to preInit() and postinit(), but I don't see any way to make the editor run a function when the updateEvent happens. Is there a way to do this?