0

Is there an event with the jquery validator plugin that I hook into? It is a bit of a follow up to these questions:

CKEditor and ASP.Net MVC 3 RequiredAttribute

JQuery Validation PlugIn - submitHandler syntax

Basically I have a CKEditor that is not playing nice with jquery required validator. My thought was to hook into some event on validation so I can run this code:

var editor = $('#Body').ckeditorGet();
     editor.updateElement();

I looked into submitHandler, but that doesn't happen until AFTER validation takes place.

Also, this is on asp.net MVC 3 although don't think that matters...

1 Answer 1

1

I had a similar problem and fixed it be adding code to the click handler of the input field like this

$('input[type=submit]').bind('click', function () {
    var editor = $('#Body').ckeditorGet();
    editor.updateElement();
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.