function CKupdate(){
for ( instance in CKEDITOR.instances ){
CKEDITOR.instances[instance].updateElement();
CKEDITOR.instances[instance].setData('');
}
}
$(document).ready(function(){
CKEDITOR.replace( 'comment-textarea' );
var options = {
success: function (html) {
$('#comments').append(html);
},
clearForm: true
};
$('#formcomments').submit(function() {
CKupdate();
});
$('#formcomments').ajaxForm(options);
});