ckeditor is hooked to the submit event in order to update the textarea on postback. validation is also hooked, and running first. you need to force ckedit to update the textarea before the submit validation. see their api for how to force an update, then
either attach to the click events to force it or write a custom validator that call the api save before checking the textarea content.
bruce (sqlwo...
All-Star
36644 Points
5432 Posts
Re: need to click twice for validation of ckeditor
Jun 10, 2011 05:15 PM|LINK
ckeditor is hooked to the submit event in order to update the textarea on postback. validation is also hooked, and running first. you need to force ckedit to update the textarea before the submit validation. see their api for how to force an update, then either attach to the click events to force it or write a custom validator that call the api save before checking the textarea content.