我在laravel中使用CKEditor,
对不起,我的英语
shipped
路线:
$("#send_emails").submit(function(e) {
var email_temp= CKEDITOR.instances['emailEditor'].getData();
$.ajax({
type: "POST",
url: '/sendEmails',
data: {
email_temp:email_temp,
"_token": $('meta[name="_token"]').attr('content')
},
success: function(response)
{
//some code
}
});
e.preventDefault(); // avoid to execute the actual submit of the form.
});