页面加载时,默认情况下启用Ckeditor SpellCheckAsYouType(SCAYT)

时间:2019-12-20 09:32:53

标签: django ckeditor4.x ckeditor5

在加载页面时,默认情况下,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>

0 个答案:

没有答案