在加载页面时,默认情况下,SCAYT被禁用,我看到我们需要使用config.disableNativeSpellChecker配置选项来启用它。但是确切地在哪里使用它。
<script>
$(document).ready(function () {
$('form.sms-comm-template').on('submit', function (elem) {
elem.preventDefault();
$.ajax({
url: $(this).attr('action'),
type: $(this).attr('method'),
dataType: 'json',
data: $(this).serialize(),
success: function (data) {
$('#comm-update').css({'display': 'none'});
$('#Communication').css({'display': 'block'});
CKEDITOR.replace( 'editor1' );
$('.template_body').each(function(e){
CKEDITOR.replace( this.id, { customConfig: '/jblog/ckeditor/config_Large.js' });
});
//$('.template_body').summernote({
//dialogsInBody: true
//airMode: true
//});
},
error: function (xhr, err) {
}
});
})
});
</script>