I am trying to integrate CKEditor into a page that uses Jquery Validate. I am just trying to get the Required validate to work with CKEditor with no success. I am also using the CKEditor JQuery Adapter. Basically what happens is when I enter data into the editor, the validation doesn't get triggered. Same thing when I try to submit. If I submit a second time, then it appears to work. Has anyone had any success with this?
Someone in StackOverflow suggested the following, but that also didn't work
$('form').submit(function (e) {
var editor = $('textarea.editor').ckeditorGet();
editor.updateElement();
});
Someone in StackOverflow suggested the following, but that also didn't work
$('form').submit(function (e) {
var editor = $('textarea.editor').ckeditorGet();
editor.updateElement();
});
Re: CKEditor and Jquery.Validate plug in
No one has run into this before??
Re: CKEditor and Jquery.Validate plug in
<script type="text/javascript">
function validate_editor(){
// To solve the error of using Ckeditor with jqury validation
CKEDITOR.instances.content.updateElement();
}
</script>
Please give me feedback if it works with you.
Thank you
Re: CKEditor and Jquery.Validate plug in
I've got validation working - ie the error message is displayed on form submit.
What I'd like to replicate is the existing validation functionality of other input/textareas...
If there is a validation issue, a flag is thrown but if you then come back and enter text/correct the issue, the validation error message is removed. I can't seem to get this to work with CFEditor.
Tried various solutions involving CKEDITOR.instances[instance].updateElement(); but so far no luck. I'm not sure if I'm calling that in the wrong area but I never see the text area get populated with anything (using Firebug)