首页 文章

如何禁用ckeditor 3 auto spellchecker?

提问于
浏览
3

我已经安装了CKEditor 3.0,它工作得很好,但是我想要禁用自动拼写检查器,当我在编辑器中编写一些单词时,它会设法连接到“svc.spellchecker.net”以进行拼写检查

你知道有什么方法可以阻止这个功能吗?

提前致谢

5 回答

  • 11

    只需设置scayt_autoStartup = false;

    window.addEvent('domready',function(){
    
    var CKEditor = $jq('textarea.ckEditor');
    
    // CKEditor
    CKEditor.ckeditor({
        //*
        disableNativeSpellChecker:true,
        scayt_autoStartup:false,
        toolbar:[
            ['Bold','Italic','Underline','Strike'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Undo','Redo'], ....
    
  • 1

    The documentation建议您在CKEDITOR.config中将 disableNativeSpellChecker 设置为true .

  • 11

    这是我用过的方式:

    CKEDITOR.editorConfig = function (config) {
    
    // Disable spellchecker
    config.scayt_autoStartup = false;
    
    // Other configurations
    config.htmlEncodeOutput = true;
    config.enterMode = CKEDITOR.ENTER_BR;
    config.shiftEnterMode = CKEDITOR.ENTER_BR;
    
    config.toolbar =
        [
             ['Bold', 'Italic', '-', 'Link', 'Unlink']
        ];
    config.removePlugins = 'elementspath,save,font, maximize, resize, scayt';
    config.filebrowserBrowseUrl = '/boDocumentos';
    config.filebrowserUploadUrl = '/boDocumentos/upload';
    config.filebrowserImageWindowWidth = '640';
    config.filebrowserImageWindowHeight = '720';
    

    };

  • 3

    你想要的选项是scayt_autoStartup

  • 0

    最好在config.js中禁用插件

    config.removePlugins ='scayt';

相关问题